manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.2.1 Ranges (bounding box)

Method on mglGraph (C++, Python): void SetRanges (float x1, float x2, float y1, float y2, float z1=0, float z2=0)
Method on mglGraph (C++): void Axis (mglPoint min, mglPoint max, mglPoint org=mglPoint(NAN,NAN,NAN))
C function: void mgl_set_axis_2d (HMGL gr, float x1, float y1, float x2, float y2)
C function: void mgl_set_axis_3d (HMGL gr, float x1, float y1, float z1, float x2, float y2, float z2)

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.z and Cmax=Max.z. This is default color range for 2d plots.

Method on mglGraph (C++, Python): void SetCRange (float min, float max)
Method on mglGraph (C++): void CAxis (float min, float max)
C function: void mgl_set_caxis (HMGL gr, float min, float max)

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): void XRange (const mglData & dat, bool add=false, float fact=0)
C function: void mgl_set_xrange (HMGL gr, const HMDT a, int add)

Sets values of Min.x and Max.x as 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): void YRange (const mglData & dat, bool add=false, float fact=0)
C function: void mgl_set_yrange (HMGL gr, const HMDT a, int add)

Sets values of Min.y and Max.y as 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): void ZRange (const mglData & dat, bool add=false, float fact=0)
C function: void mgl_set_zrange (HMGL gr, const HMDT a, int add)

Sets values of Min.z and Max.z as 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): void CRange (const mglData & dat, bool add=false, float fact=0)
C function: void mgl_set_crange (HMGL gr, const HMDT a, int add)

Sets values of Cmin and Cmax as 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): void SetAutoRanges (float x1, float x2, float y1=0, float y2=0, float z1=0, float z2=0)
C function: void mgl_set_auto (HMGL gr, float x1, float x2, float y1, float y2, float z1, float z2)

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): 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 library try to select optimal axis position.

Method on mglGraph (C++): void RecalcBorder ()

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: mglPoint Min, 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: float Cmin, Cmax

Minimal and maximal value for data (used for coloring).

General option (C++) of mglGraph: mglPoint Org

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: bool AutoOrg

Flag for automatic shifting of axes origin Org if it lies out of range Min ... Max.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.