Go to the source code of this file.
Functions | |
| int | axis_tick_positions (double begin, double end, double *ticks, int *tick_nr, double *scale_factor, int *tick_decimals) |
| void | axis_check_range (double *begin, double *end) |
Variables | |
| int | AXIS_TEST = 0 |
| void axis_check_range | ( | double * | begin, |
| double * | end | ||
| ) |
Check and if necessary correct axis range: min must be smaller than max. Also, if the range is close to zero, then make it larger. Also, if the range is relatively large, then change it to start from zero.
| begin | axis range minimum |
| end | axis range maximum |
Definition at line 155 of file axis.c.
Referenced by svg_calculate_axes().
| int axis_tick_positions | ( | double | begin, |
| double | end, | ||
| double * | ticks, | ||
| int * | tick_nr, | ||
| double * | scale_factor, | ||
| int * | tick_decimals | ||
| ) |
Define suitable tick positions for XY plot
| begin | axis range minimum |
| end | axis range maximum |
| ticks | Pointer to array where tick values will be written |
| tick_nr | Input: Max allowed nr of ticks; Output: actual nr of ticks |
| scale_factor | Output: Suggested scale factor (x10^sf). NULL, if not needed |
| tick_decimals | Output: tick value precision (nr of decimals). NULL, if not needed. |
Definition at line 58 of file axis.c.
References AXIS_TEST.
Referenced by main(), and svg_calculate_axes().
| int AXIS_TEST = 0 |
Definition at line 53 of file axis.c.
Referenced by axis_tick_positions(), and main().
1.8.0