| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
4.3.1 Ranges (bounding box)
- MGL command: xrange
v1 v2[add=off] - MGL command: yrange
v1 v2[add=off] - MGL command: zrange
v1 v2[add=off] - MGL command: crange
v1 v2[add=off] - Method on
mglGraph:voidSetRange (chardir,mrealv1,mrealv2) - Method on
mglGraph:voidAddRange (chardir,mrealv1,mrealv2) - C function:
voidmgl_set_range_val (HMGLgr,chardir,mrealv1,mrealv2) - C function:
voidmgl_add_range_val (HMGLgr,chardir,mrealv1,mrealv2) Sets or adds the range for ‘x’-,‘y’-,‘z’- coordinate or coloring (‘c’). If one of values is
NANthen it is ignored. 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 mglDataA &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 (doublex1,doublex2,doubley1,doubley2,doublez1=0,doublez2=0) - C function:
voidmgl_set_ranges (HMGLgr,doublex1,doublex2,doubley1,doubley2,doublez1,doublez2) 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 mglDataA &xx,const mglDataA &yy) - Method on
mglGraph:voidSetRanges (const mglDataA &xx,const mglDataA &yy,const mglDataA &zz) - Method on
mglGraph:voidSetRanges (const mglDataA &xx,const mglDataA &yy,const mglDataA &zz,const mglDataA &cc) Sets the ranges of ‘x’-,‘y’-,‘z’-coordinates and coloring as minimal and maximal values of data xx, yy, zz, cc correspondingly.
- Method on
mglGraph:voidSetAutoRanges (mglPointp1,mglPointp2) - Method on
mglGraph:voidSetAutoRanges (doublex1,doublex2,doubley1,doubley2,doublez1=0,doublez2=0,doublec1=0,doublec2=0) - C function:
voidmgl_set_auto_ranges (HMGLgr,doublex1,doublex2,doubley1,doubley2,doublez1,doublez2,doublez1,doublez2) Sets the ranges for automatic coordinates. If minimal and maximal values of the coordinate are the same then they are ignored.
- MGL command: origin
x0 y0 [z0=nan] - Method on
mglGraph:voidSetOrigin (mglPointp0) - Method on
mglGraph:voidSetOrigin (mrealx0,mrealy0,mrealz0=NAN) - C function:
voidmgl_set_origin (HMGLgr,mrealx0,mrealy0,mrealz0) Sets center of axis cross section. If one of values is NAN then MathGL try to select optimal axis position.
- MGL command: zoomaxis
x1 x2 - MGL command: zoomaxis
x1 y1 x2 y2 - MGL command: zoomaxis
x1 y1 z1 x2 y2 z2 - MGL command: zoomaxis
x1 y1 z1 c1 x2 y2 z2 c2 - Method on
mglGraph:voidZoomAxis (mglPointp1,mglPointp2) - C function:
voidmgl_zoom_axis (HMGLgr,mrealx1,mrealy1,mrealz1,mrealc1,mrealx2,mrealy2,mrealz2,mrealc2) Additionally extend axis range for any settings made by
SetRangeorSetRangesfunctions according the formula min += (max-min)*p1 and max += (max-min)*p1 (or min *= (max/min)^p1 and max *= (max/min)^p1 for log-axis range when inf>max/min>100 or 0<max/min<0.01). Initial ranges are [0, 1]. Attention! this settings can not be overwritten by any other functions, includingDefaultPlotParam().
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on March 21, 2014 using texi2html 5.0.
