41#include <OpenMesh/Core/System/config.hh>
47#if defined(OM_CC_MIPS)
59# define GP_MAX_TMP_FILES 27
61# define GP_MAX_TMP_FILES 64
62# define GP_TMP_NAME_SIZE 512
63# define GP_TITLE_SIZE 80
65#define GP_CMD_SIZE 1024
98 vector<string> to_delete;
100 bool get_program_path(
const string& );
104 static string gnuplot_executable_;
116 explicit Gnuplot(
const string & _style);
120 const string & _style,
121 const string & _xlabel,
122 const string & _ylabel,
123 const vector<double>& _x,
const vector<double>& _y);
127 const string &_style,
128 const string &_xlabel,
129 const string &_ylabel,
130 const vector<double>& _x);
136 void cmd(
const char *_cmd, ...);
149 void plot_x(
const vector<double>& _x,
const string &_title);
152 void plot_xy(
const vector<double>& _x,
const vector<double>& _y,
const string &_title);
159 const string & _title
164 const string & _equation,
165 const string & _title
Exception thrown by class Gnuplot.
bool is_valid(void) const
Is Self valid?
void set_xlabel(const string &_xlabel)
set x axis label
void plot_slope(double _a, double _b, const string &_title)
void cmd(const char *_cmd,...)
Send a command to gnuplot (low-level function use by all plot functions.)
~Gnuplot()
Default constructor.
void plot_x(const vector< double > &_x, const string &_title)
Plot a single vector.
void plot_xy(const vector< double > &_x, const vector< double > &_y, const string &_title)
Plot x,y pairs.
Gnuplot()
Default constructor.
void reset_plot(void)
If multiple plots are present it will clear the plot area.
void set_style(const string &_style)
set line style
bool is_active(void) const
Is Self active, i.e. does it have an active plot?
void plot_equation(const string &_equation, const string &_title)
Plot an equation supplied as a string.
void set_ylabel(const string &_ylabel)
set x axis label