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

9.2.3 Ticks (Python)

Method on mglGraph (Python): void SetTicks (char dir, float d=-5, int ns=0, float org=NAN)

Set the ticks step d, number of sub-ticks ns and initial ticks position org for the axis along direction dir. Variable d set step for axis ticks (if positive) or it's number on the axis range (if negative). Zero value set logarithmic ticks. If org value is NAN then value from Org is used.

Method on mglGraph: void SetTicksVal (char dir, int n, float *val, char **lbl)
Method on mglGraph: void SetTicksVal (char dir, int n, float *val, wchar_t **lbl)

Set the manual positions val and its labels lbl for n-th ticks along axis dir. The arrays val and lbl have to contain n elements. Use SetTicks() to restore automatic ticks.

Method on mglGraph (Python): void SetTickTemplX (const wchar_t *xtt)
Method on mglGraph (Python): void SetTickTemplY (const wchar_t *ytt)
Method on mglGraph (Python): void SetTickTemplZ (const wchar_t *ztt)
Method on mglGraph (Python): void SetTickTemplC (const wchar_t *ctt)

The template for x-,y-,z-axis ticks or colorbar ticks. It may contain TeX symbols also. If xtt, ytt, ztt, ctt=NULL then default template is used (in simplest case it is ‘%.2g’) with automatic detaching of common multiplier or common component (see TuneTicks).

Method on mglGraph (Python): void SetTuneTicks (bool tune, float factor_pos=1.15)

Switch on/off ticks enhancing by factoring 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). Also set the position of common multiplier/component on the axis: =0 at minimal axis value, =1 at maximal axis value. Default value is 1.15.


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