|
TPCCLIB
|
Create SVG plot viewports for TPC SVG C library. More...
Go to the source code of this file.
Functions | |
| void | svg_init_viewport_pos (struct svg_viewport_pos *p) |
| void | svg_init_coord (struct svg_coord *p) |
| void | svg_init_viewports (struct svg_viewports *p) |
| int | svg_define_viewports (const int main_viewport_width, const int main_viewport_height, const int is_main_title, const int is_yaxis_title, const int is_xaxis_title, const int is_label_area, struct svg_viewports *vp, int verbose) |
Variables | |
| int | SVG_INLINE |
Create SVG plot viewports for TPC SVG C library.
Definition in file svg_vport.c.
| int svg_define_viewports | ( | const int | main_viewport_width, |
| const int | main_viewport_height, | ||
| const int | is_main_title, | ||
| const int | is_yaxis_title, | ||
| const int | is_xaxis_title, | ||
| const int | is_label_area, | ||
| struct svg_viewports * | vp, | ||
| int | verbose ) |
Define the viewport positions for further use. All measures are in pixels.
Axis tick labels (y axis at least) should be set before calling this, so that enough room for the labels can be reserved.
| main_viewport_width | Main viewport width (zero if default is used) |
| main_viewport_height | Main viewport height (zero if default is used) |
| is_main_title | Is there main title? no=0, yes<>0 |
| is_yaxis_title | Is there y axis title? no=0, yes<>0 |
| is_xaxis_title | Is there x axis title? no=0, yes<>0 |
| is_label_area | Is there label area? no=0, yes<>0 |
| vp | Pointer to structure which will be filled with viewport positions and sizes |
| verbose | Verbose level; if zero, then nothing is printed to stderr or stdout |
Definition at line 65 of file svg_vport.c.
Referenced by plot_fit_svg(), plot_fitrange_svg(), and plot_svg().
| void svg_init_coord | ( | struct svg_coord * | p | ) |
Initiate struct svg_coord contents to all-zeroes before use.
Definition at line 26 of file svg_vport.c.
Referenced by svg_init_viewports().
| void svg_init_viewport_pos | ( | struct svg_viewport_pos * | p | ) |
Initiate struct svg_viewport_pos contents to all-zeroes before use.
Definition at line 15 of file svg_vport.c.
Referenced by svg_init_viewports().
| void svg_init_viewports | ( | struct svg_viewports * | p | ) |
Initiate struct svg_viewports contents to all-zeroes before use.
Definition at line 43 of file svg_vport.c.
Referenced by plot_fit_svg(), plot_fitrange_svg(), and plot_svg().
|
extern |
Write inline SVG (1) or separate SVG file (0)
Definition at line 12 of file svg_file.c.