|
TPCCLIB
|
Axis for XY plots. More...
#include "libtpcsvg.h"Go to the source code of this file.
Functions | |
| int | axis_tick_positions (const double begin, const double end, double *ticks, int *tick_nr, double *scale_factor, int *tick_decimals, int verbose) |
| void | axis_check_range (double *begin, double *end, int verbose) |
| void | strRmExpZeroes (char *str) |
Axis for XY plots.
Definition in file axis.c.
| void axis_check_range | ( | double * | begin, |
| double * | end, | ||
| int | verbose ) |
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 |
| verbose | Verbose level; if zero, then nothing is printed to stderr or stdout |
Definition at line 116 of file axis.c.
Referenced by svg_calculate_axes().
| int axis_tick_positions | ( | const double | begin, |
| const double | end, | ||
| double * | ticks, | ||
| int * | tick_nr, | ||
| double * | scale_factor, | ||
| int * | tick_decimals, | ||
| int | verbose ) |
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. Length must be at least tick_nr. |
| 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. |
| verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 14 of file axis.c.
Referenced by svg_calculate_axes().
| void strRmExpZeroes | ( | char * | str | ) |
Remove initial exponential zeroes from the exponential part of string representation of values, for example, '1.01E-010' -> '1.01E-10'.
Definition at line 179 of file axis.c.
Referenced by svg_calculate_axes().