TPCCLIB
|
File io for TPC SVG C library. More...
#include "libtpcsvg.h"
Go to the source code of this file.
Functions | |
FILE * | svg_initiate (const char *filename, const double height, const double width, struct svg_viewports *vp, char *errmsg, int verbose) |
int | svg_close (FILE *fp, char *errmsg, int verbose) |
FILE * | svg_xhtml_initiate (const char *filename, const char *XHTML_title, char *errmsg, int verbose) |
int | svg_xhtml_close (FILE *fp, char *errmsg, int verbose) |
int | svg_xhtml_svg_open (FILE *fp, const double height, const double width, struct svg_viewports *vp, char *errmsg, int verbose) |
int | svg_xhtml_svg_close (FILE *fp, char *errmsg, int verbose) |
int | svg_write (FILE *fp, const char *svg_string, char *errmsg, int verbose) |
Variables | |
int | SVG_INLINE = 0 |
File io for TPC SVG C library.
Definition in file svg_file.c.
int svg_close | ( | FILE * | fp, |
char * | errmsg, | ||
int | verbose ) |
Close SVG graphics file.
fp | SVG graphics file pointer. |
errmsg | Char pointer to string (at least of length 128) where possible error description is copied; set to NULL if not necessary. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 107 of file svg_file.c.
Referenced by plot_fit_svg(), plot_fitrange_svg(), and plot_svg().
FILE * svg_initiate | ( | const char * | filename, |
const double | height, | ||
const double | width, | ||
struct svg_viewports * | vp, | ||
char * | errmsg, | ||
int | verbose ) |
Initiate a new SVG graphics file.
If file with same name exists, it is overwritten without backup.
filename | File name for SVG graphics. |
height | Plot height in cm; 0, if not predefined. |
width | Plot width in cm; 0, if not predefined. |
vp | Struct containing the viewport sizes. |
errmsg | Char pointer to string (at least of length 128) where possible error description is copied; set to NULL if not necessary. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 22 of file svg_file.c.
Referenced by plot_fit_svg(), plot_fitrange_svg(), and plot_svg().
int svg_write | ( | FILE * | fp, |
const char * | svg_string, | ||
char * | errmsg, | ||
int | verbose ) |
Write given string into open SVG file
fp | SVG graphics file pointer. |
svg_string | Char pointer to NULL terminated string to be written into file. |
errmsg | Char pointer to string (at least of length 128) where possible error description is copied; set to NULL if not necessary. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 304 of file svg_file.c.
Referenced by svg_close(), svg_create_legends(), svg_create_main_title(), svg_create_xaxis_title(), svg_create_yaxis_title(), svg_define_symbols(), svg_end_coordinate_viewport(), svg_end_plot_viewport(), svg_initiate(), svg_start_coordinate_viewport(), svg_start_plot_viewport(), svg_write_axes(), svg_write_tac(), svg_write_xticks(), svg_write_yticks(), svg_xhtml_close(), svg_xhtml_initiate(), svg_xhtml_svg_close(), and svg_xhtml_svg_open().
int svg_xhtml_close | ( | FILE * | fp, |
char * | errmsg, | ||
int | verbose ) |
Close XHTML file containing inline SVG.
fp | SVG graphics file pointer. |
errmsg | Char pointer to string (at least of length 128) where possible error description is copied; set to NULL if not necessary. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 206 of file svg_file.c.
FILE * svg_xhtml_initiate | ( | const char * | filename, |
const char * | XHTML_title, | ||
char * | errmsg, | ||
int | verbose ) |
Initiate a new XHTML file for one or more inline SVG graphics files.
If file with same name exists, it is overwritten without backup.
filename | File name for SVG graphics. |
XHTML_title | XHTML title; if NULL, then file name is used. |
errmsg | Char pointer to string (at least of length 128) where possible error description is copied; set to NULL if not necessary. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 131 of file svg_file.c.
int svg_xhtml_svg_close | ( | FILE * | fp, |
char * | errmsg, | ||
int | verbose ) |
Close SVG graphics inline in XHTML file. Leaves the file open.
fp | SVG graphics file pointer. |
errmsg | Char pointer to string (at least of length 128) where possible error description is copied; set to NULL if not necessary. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 283 of file svg_file.c.
int svg_xhtml_svg_open | ( | FILE * | fp, |
const double | height, | ||
const double | width, | ||
struct svg_viewports * | vp, | ||
char * | errmsg, | ||
int | verbose ) |
Open a new SVG inline XHTML file.
fp | SVG graphics file pointer. |
height | Plot height in cm; 0, if not predefined. |
width | Plot width in cm; 0, if not predefined. |
vp | Struct containing the viewport sizes. |
errmsg | Char pointer to string (at least of length 128) where possible error description is copied; set to NULL if not necessary. |
verbose | Verbose level; if zero, then nothing is printed to stderr or stdout. |
Definition at line 231 of file svg_file.c.
int SVG_INLINE = 0 |
Write inline SVG (1) or separate SVG file (0)
Definition at line 12 of file svg_file.c.
Referenced by svg_create_legends(), svg_create_main_title(), svg_create_xaxis_title(), svg_create_yaxis_title(), svg_define_symbols(), svg_end_coordinate_viewport(), svg_end_plot_viewport(), svg_start_coordinate_viewport(), svg_start_plot_viewport(), svg_write_axes(), svg_write_tac(), svg_write_xticks(), svg_write_yticks(), svg_xhtml_close(), and svg_xhtml_initiate().