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

3.2.1 Ranges (bounding box)

Method on mglGraph: void Axis (mglPoint min, mglPoint max, mglPoint org=mglPoint(NAN,NAN,NAN))

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: void CAxis (float min, float max)

Safely sets the values of Cmin and Cmax. This values are used later for determining the color of the surface.

Method on mglGraph: void XRange (const mglData & dat, bool add=false, float fact=0)

Sets values of Min.x and Max.x as minimal and maximal values of data a. Parameter fact add additional range increase on value (Max-Min)*fact. See also Axis().

Method on mglGraph: void YRange (const mglData & dat, bool add=false, float fact=0)

Sets values of Min.y and Max.y as minimal and maximal values of data a. Parameter fact add additional range increase on value (Max-Min)*fact. See also Axis().

Method on mglGraph: void ZRange (const mglData & dat, bool add=false, float fact=0)

Sets values of Min.z and Max.z as minimal and maximal values of data a. Parameter fact add additional range increase on value (Max-Min)*fact. See also Axis().

Method on mglGraph: void CRange (const mglData & dat, bool add=false, float fact=0)

Sets values of Cmin and Cmax as minimal and maximal values of data a. Parameter fact add additional range increase on value (Cmax-Cmin)*fact. See also CAxis().

Method on mglGraph: 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 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 of mglGraph: float Cmin, Cmax

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

General option 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 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-2026
Individual documents may contain additional copyright information.