From ff9b8e5a609364f51d1ae54fbc210ffdc76b27b4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 15 Feb 2023 17:54:58 -0500 Subject: Break out gnuplot functions into their own source files --- gnuplot.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 gnuplot.h (limited to 'gnuplot.h') 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 +#include +#include + +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 -- cgit