| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
3.2.3 Ticks
- Method on
mglGraph(C++, Python):voidAdjustTicks (const char *dir="xyz") - C function:
voidmgl_adjust_ticks (HMGLgr,const char *dir) Set the ticks step, number of sub-ticks and initial ticks position to be the most human readable for the axis along direction(s) dir. Also set
SetTuneTicks(true).
- Method on
mglGraph(C++, Python):voidSetTicks (chardir,floatd=-5,intns=0,floatorg=NAN) - C function:
voidmgl_set_ticks_dir (HMGLgr,chardir,floatd,intns,floatorg) - C function:
voidmgl_set_ticks (HMGLgr,floatdx,floatdy,floatdz) - C function:
voidmgl_set_subticks (HMGLgr,intnx,intny,intnz) - C function:
voidmgl_set_tick_origin (HMGLgr,floatx0,floaty0,floatz0) Set the ticks step d, number of sub-ticks ns and initial ticks position org for the axis along direction dir (use ’c’ for colorbar ticks). 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(C++, Python):voidSetTicksVal (chardir,intn,float *val,const char **lbl) - Method on
mglGraph(C++, Python):voidSetTicksVal (chardir,intn,float *val,const wchar_t **lbl) - Method on
mglGraph(C++):voidSetTicksVal (chardir,intn,floatval1,wchar_t *lbl1, ...) - C function:
voidmgl_set_ticks_vals (HMGLgr,chardir,intn,float *val,const char **lbl) - C function:
voidmgl_set_ticks_val (HMGLgr,chardir,intn,doubleval,const char *lbl, ...) Set the manual positions val and its labels lbl for n-th ticks along axis dir. The arrays val and lbl must contain n elements. Use
SetTicks()to restore automatic ticks. Note, you have to be very careful to use floating-point (not integer!!!) values as ticks position due to limitations of stdarg library (argument transfer). See section Tick values sample, for sample code and picture.
- Method on
mglGraph(C++, Python):voidSetTuneTicks (booltune,floatpos=1.15) - C function:
voidmgl_tune_ticks (HMGLgr,booltune,floatpos) 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 pos of common multiplier/component on the axis: =0 at minimal axis value, =1 at maximal axis value. Default value is 1.15.
- Method on
mglGraph(C++, Python):voidSetXTT (const char *xtt) - Method on
mglGraph(C++, Python):voidSetYTT (const char *ytt) - Method on
mglGraph(C++, Python):voidSetZTT (const char *ztt) - Method on
mglGraph(C++, Python):voidSetCTT (const char *ctt) - Method on
mglGraph(C++, Python):voidSetXTT (const wchar_t *xtt) - Method on
mglGraph(C++, Python):voidSetYTT (const wchar_t *ytt) - Method on
mglGraph(C++, Python):voidSetZTT (const wchar_t *ztt) - Method on
mglGraph(C++, Python):voidSetCTT (const wchar_t *ctt) - C function:
voidmgl_set_xttw (HMGLgr,const wchar_t *xtt) - C function:
voidmgl_set_yttw (HMGLgr,const wchar_t *ytt) - C function:
voidmgl_set_zttw (HMGLgr,const wchar_t *ztt) - C function:
voidmgl_set_cttw (HMGLgr,const wchar_t *ctt) - C function:
voidmgl_set_xtt (HMGLgr,const wchar_t *xtt) - C function:
voidmgl_set_ytt (HMGLgr,const wchar_t *ytt) - C function:
voidmgl_set_ztt (HMGLgr,const wchar_t *ztt) - C function:
voidmgl_set_ctt (HMGLgr,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=
""then default template is used (in simplest case it is ‘%.2g’). Setting of template switch off automatic ticks tuning (seeSetTuneTicks()).
- Obsolete option of mglGraph:
boolTuneTicks Switch on/off ticks enhancing by factoring common multiplier. See
SetTuneTicks().
- Obsolete option of mglGraph:
floatFactorPos The position of common multiplier/component on the axis. See
SetTuneTicks().
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
