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

1.4.1 Coordinate axes

There is twofold axes representation in MathGL. First one consists in normalizing of the data point coordinates in box MinxMax (see section Axis settings). If Cut is true then the outlied points are omitted otherwise they are projected to the bounding box (see section Cutting). Also, the point will be omitted if it lies inside the box defined by CutMinxCutMax or if the value of formula CutOff() is nonzero for its cooridnates. After it transformation formulas are applied to the data point (see section Transformation (curved coordinates)). Finally, the data point is plotted by one of function.

There is possibility to set members Max, Min directly but one should call RecalcBorder() function to setup plotting routines. The more safe way is to set these values by calling Axis() function. In this case the function RecalcBorder() is called automatically. Another way to specify the size of axis is to set it as a minimal or maximal value of data array. Functions XRange(), YRange(), ZRange() do it. The second (optional) argument sets to replace the axis range or to join with the existed range.

The axis origin is defined by variable Org and is applied for all consequent calls of axes or grid drawing. By default, if this point lies outside the bounding box then it is projected to the one (variable AutoOrg control it). In the case if one of values of Org is equal to NAN then the corresponding value will be selected automatically.

There is 4-th axis c (color axis or colorbar) in addition to usual axes x, y, z. It sets the range of values for the surface coloring. Its borders are automatically set to values of Min.z, Max.z during the call of Axis() function. Also, there are direct change of the color range by setting of variables Cmax, Cmax, or calling functions CAxis() or CRange(). Use Colorbar() function for showing the colorbar.

The form (appearence) of tick labels is controlled by SetTicks() function and few variables (see section Ticks). It have 3 arguments: first one d set the tick step (if positive) or tick number (if negative) or switch logarithmic ticks on (if zero); second one ns set the number of subticks; last one is the starting point for ticks (default is axis origin). The variable TuneTicks switches on/off ticks enhancing by the detaching of the common multiplier (for small, like from 0.001 to 0.002, or large, like from 1000 to 2000, coordinate values) or common component (for narrow range, like from 0.999 to 1.000). Finally, you may use variables xtt, ytt, ztt, ctt for setting templates for tick labels (it supports TeX symbols). Also, there is a possibility to print arbitrary text as tick labels if one defines the pointer (name) of function TickStr.


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