diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-02-15 17:54:58 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-02-15 17:54:58 -0500 |
commit | ff9b8e5a609364f51d1ae54fbc210ffdc76b27b4 (patch) | |
tree | 915d73d78df8a3bccc100f16f72f48ab5d3ecbd6 /gnuplot.h | |
parent | e4f00d115636d66514c7fa6407e7aa86dd542012 (diff) | |
download | mstat-ff9b8e5a609364f51d1ae54fbc210ffdc76b27b4.tar.gz |
Break out gnuplot functions into their own source files
Diffstat (limited to 'gnuplot.h')
-rw-r--r-- | gnuplot.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gnuplot.h b/gnuplot.h new file mode 100644 index 0000000..6dcc480 --- /dev/null +++ b/gnuplot.h @@ -0,0 +1,30 @@ +#ifndef MSTAT_GNUPLOT_H +#define MSTAT_GNUPLOT_H +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +struct GNUPLOT_PLOT { + char *title; + char *xlabel; + char *ylabel; + char *line_type; + double line_width; + unsigned int line_color; + unsigned char grid_toggle; + unsigned int grid_mxtics; + unsigned int grid_mytics; + unsigned char autoscale_toggle; + unsigned char legend_toggle; + unsigned char legend_enhanced; + char *legend_title; +}; + +FILE *gnuplot_open(); +int gnuplot_close(FILE *fp); +int gnuplot_wait(FILE *fp); +int gnuplot_sh(FILE *fp, char *fmt, ...); +void gnuplot_plot(FILE *fp, struct GNUPLOT_PLOT **gp, double x[], double *y[], size_t x_count, size_t y_count); +unsigned int gnuplot_rgb(unsigned char r, unsigned char g, unsigned char b); + +#endif //MSTAT_GNUPLOT_H |