| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
3.2.1 Ranges (bounding box)
- Method on
mglGraph(C++, Python):voidSetRanges (floatx1,floatx2,floaty1,floaty2,floatz1=0,floatz2=0) - Method on
mglGraph(C++):voidAxis (mglPointmin,mglPointmax,mglPointorg=mglPoint(NAN,NAN,NAN)) - C function:
voidmgl_set_axis_2d (HMGLgr,floatx1,floaty1,floatx2,floaty2) - C function:
voidmgl_set_axis_3d (HMGLgr,floatx1,floaty1,floatz1,floatx2,floaty2,floatz2) Safely sets the value for Min, Max and Org members (options) of the class. If minimal and maximal values of the coordinate are the same then they are ignored. This function also sets Cmin=
Min.zand Cmax=Max.z. This is default color range for 2d plots.
- Method on
mglGraph(C++, Python):voidSetCRange (floatmin,floatmax) - Method on
mglGraph(C++):voidCAxis (floatmin,floatmax) - C function:
voidmgl_set_caxis (HMGLgr,floatmin,floatmax) Safely sets minimal and maximal values of data for coloring. This values are used later for determining the color of the surface.
- Method on
mglGraph(C++, Python):voidXRange (const mglData &dat,booladd=false,floatfact=0) - C function:
voidmgl_set_xrange (HMGLgr,const HMDTa,intadd) Sets values of
Min.xandMax.xas minimal and maximal values of data a. Parameter add specify to add or not the new range to current one. Parameter fact add additional range increase on value (Max-Min)*fact. See also Axis().
- Method on
mglGraph(C++, Python):voidYRange (const mglData &dat,booladd=false,floatfact=0) - C function:
voidmgl_set_yrange (HMGLgr,const HMDTa,intadd) Sets values of
Min.yandMax.yas minimal and maximal values of data a. Parameter add specify to add or not the new range to current one. Parameter fact add additional range increase on value (Max-Min)*fact. See also Axis().
- Method on
mglGraph(C++, Python):voidZRange (const mglData &dat,booladd=false,floatfact=0) - C function:
voidmgl_set_zrange (HMGLgr,const HMDTa,intadd) Sets values of
Min.zandMax.zas minimal and maximal values of data a. Parameter add specify to add or not the new range to current one. Parameter fact add additional range increase on value (Max-Min)*fact. See also Axis().
- Method on
mglGraph(C++, Python):voidCRange (const mglData &dat,booladd=false,floatfact=0) - C function:
voidmgl_set_crange (HMGLgr,const HMDTa,intadd) Sets values of
CminandCmaxas minimal and maximal values of data a. Parameter add specify to add or not the new range to current one. Parameter fact add additional range increase on value (Cmax-Cmin)*fact. See also CAxis().
- Method on
mglGraph(C++, Python):voidSetAutoRanges (floatx1,floatx2,floaty1=0,floaty2=0,floatz1=0,floatz2=0) - C function:
voidmgl_set_auto (HMGLgr,floatx1,floatx2,floaty1,floaty2,floatz1,floatz2) Sets ranges for automatic variables of plots. It act as changing of Min, Max proprties without calling of RecalcBorder(). Function don’t change the direction if minimal and maximal values are the same. For example, if yy1=y2 then ranges along y-direction will not be changed (will be used previous one). Note that the automatic range become axis range after next call of [XYZ]Range() function(s).
- Method on
mglGraph(C++, Python):voidSetOrigin (floatx0,floaty0,floatz0=NAN) - C function:
voidmgl_set_origin (HMGLgr,floatx0,floaty0,floatz0) Sets center of axis cross section. If one of values is NAN then MathGL library try to select optimal axis position.
- Method on
mglGraph(C++):voidRecalcBorder () Recalculates internal parameter for correct apply of transformation rules. Must be called after any direct change of members Min, Max, fx, fy, fz if its changes should be seen on the plot.
- General option (C++) of mglGraph:
mglPointMin, Max Lower and upper edges of bounding box for graphics. These variables are used for determining the range of automatic (non-specified) arrays in most of plotting functions. So, you may change it before plot and return it back after it and the plot will have automatic x-(y-,z-)coordinate normalized in this range but not in bounding box. BUT if you want to change the bounding box then you must call
RecalcBorder();after it or use Axis() function.
- General option (C++) of mglGraph:
floatCmin, Cmax Minimal and maximal value for data (used for coloring).
- General option (C++) of mglGraph:
mglPointOrg Center of axis cross section. If one of values is NAN then MathGL library try to select optimal axis position.
- General option (C++) of mglGraph:
boolAutoOrg Flag for automatic shifting of axes origin Org if it lies out of range Min ... Max.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
