[ << ] | [ < ] | [ 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
:void
SetRange (char
dir,float
v1,float
v2) - C function:
void
mgl_set_range_val (HMGL
gr,char
dir,float
v1,float
v2) 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
:void
SetRange (char
dir,const mglData &
dat,bool
add=false
) - C function:
void
mgl_set_range_dat (HMGL
gr,char
dir,const HCDT
a,int
add) Sets the range for ‘x’-,‘y’-,‘z’- coordinate or coloring (‘c’) as minimal and maximal values of data dat. Parameter
add=on
shows 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
:void
SetRanges (mglPoint
p1,mglPoint
p2) - Method on
mglGraph
:void
SetRanges (float
x1,float
x2,float
y1,float
y2,float
z1=0
,float
z2=0
) - C function:
void
mgl_set_ranges (HMGL
gr,float
x1,float
x2,float
y1,float
y2,float
z1,float
z2) 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
:void
SetRanges (const mglData &
xx,const mglData &
yy) - Method on
mglGraph
:void
SetRanges (const mglData &
xx,const mglData &
yy,const mglData &
zz) - Method on
mglGraph
:void
SetRanges (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
:void
SetOrigin (mglPoint
p0) - Method on
mglGraph
:void
SetOrigin (float
x0,float
y0,float
z0=NAN
) - C function:
void
mgl_set_origin (HMGL
gr,float
x0,float
y0,float
z0) 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.