| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
3.1.5 Zooming
These variables and functions control the overall zooming of the picture (see Zoom()) or the sub-picture (see PlotFactor). Normally you can use these variables and functions for removing “white” spaces around a plot.
- Method on
mglGraph(C++, Python):voidSetPlotFactor (floatval) - C function:
voidmgl_set_plotfactor (HMGLgr,floatval) Sets the factor of plot size. It is not recommended to set it lower then 1.5. This is some analogue of function Zoom() but applied not to overall image but for each InPlot. Use negative value or zero to enable automatic
PlotFactorselection.
- Method on
mglGraph(C++, Python):voidZoom (floatx1,floaty1,floatx2,floaty2) - C function:
voidmgl_set_zoom (HMGLgr,floatx1,floaty1,floatx2,floaty2) The function changes the scale of graphics that correspond to zoom in/out of the picture. After function call the current plot will be cleared and further the picture will contain plotting from its part [x1,x2]*[y1,y2]. Here picture coordinates x1, x2, y1, y2 changes from 0 to 1. Attention! this settings can not be overwritten by any other functions. Use
Zoom(0,0,1,1)to return default view.
- Obsolete option of mglGraph:
boolAutoPlotFactor Switch on/off automatic change of PlotFactor variable during plot rotation. See
SetPlotFactor().
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
