| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
4.3.1 Ranges (bounding box)
- MGL command: xrange
v1 v2 - MGL command: yrange
v1 v2 - MGL command: zrange
v1 v2 - MGL command: crange
v1 v2 - Method on
mglGraph:voidSetRange (chardir,floatv1,floatv2) - C function:
voidmgl_set_range_val (HMGLgr,chardir,floatv1,floatv2) Sets the range for ‘x’-,‘y’-,‘z’- coordinate or coloring (‘c’). See also ranges.
- MGL command: xrange dat [
add=off] - MGL command: yrange dat [
add=off] - MGL command: zrange dat [
add=off] - MGL command: crange dat [
add=off] - Method on
mglGraph:voidSetRange (chardir,const mglData &dat,booladd=false) - C function:
voidmgl_set_range_dat (HMGLgr,chardir,const HCDTa,intadd) Sets the range for ‘x’-,‘y’-,‘z’- coordinate or coloring (‘c’) as minimal and maximal values of data dat. Parameter
add=onshows that the new range will be joined to existed one (not replace it).
- MGL command: ranges
x1 x2 y1 y2 [z1=0 z2=0] - Method on
mglGraph:voidSetRanges (mglPointp1,mglPointp2) - Method on
mglGraph:voidSetRanges (floatx1,floatx2,floaty1,floaty2,floatz1=0,floatz2=0) - C function:
voidmgl_set_ranges (HMGLgr,floatx1,floatx2,floaty1,floaty2,floatz1,floatz2) Sets the ranges of coordinates. If minimal and maximal values of the coordinate are the same then they are ignored. Also it sets the range for coloring (analogous to
crange z1 z2). This is default color range for 2d plots. Initial ranges are [-1, 1].
- Method on
mglGraph:voidSetRanges (const mglData &xx,const mglData &yy) - Method on
mglGraph:voidSetRanges (const mglData &xx,const mglData &yy,const mglData &zz) - Method on
mglGraph:voidSetRanges (const mglData &xx,const mglData &yy,const mglData &zz,const mglData &cc) Sets the ranges of x-,y-,z-coordinates and coloring as minimal and maximal values of data xx, yy, zz, cc correspondingly.
- MGL command: origin
x0 y0 [z0=nan] - Method on
mglGraph:voidSetOrigin (mglPointp0) - Method on
mglGraph: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 try to select optimal axis position.
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on April 13, 2012 using texi2html 5.0.
