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.
Definition: Gnuplot.hh:75
Utility class interfacing with Gnuplot.
Definition: Gnuplot.hh:93
bool is_valid(void) const
Is Self valid?
Definition: Gnuplot.hh:174
void set_xlabel(const string &_xlabel)
set x axis label
Definition: Gnuplot.cc:290
void plot_slope(double _a, double _b, const string &_title)
Plot an equation of the form: y = ax + b You supply a and b.
Definition: Gnuplot.cc:305
void cmd(const char *_cmd,...)
Send a command to gnuplot (low-level function use by all plot functions.)
Definition: Gnuplot.cc:261
~Gnuplot()
Default constructor.
Definition: Gnuplot.cc:191
void plot_x(const vector< double > &_x, const string &_title)
Plot a single vector.
Definition: Gnuplot.cc:352
void plot_xy(const vector< double > &_x, const vector< double > &_y, const string &_title)
Plot x,y pairs.
Definition: Gnuplot.cc:421
Gnuplot()
Default constructor.
Definition: Gnuplot.cc:110
void reset_plot(void)
If multiple plots are present it will clear the plot area.
Definition: Gnuplot.cc:230
void set_style(const string &_style)
set line style
Definition: Gnuplot.cc:243
bool is_active(void) const
Is Self active, i.e. does it have an active plot?
Definition: Gnuplot.hh:177
void plot_equation(const string &_equation, const string &_title)
Plot an equation supplied as a string.
Definition: Gnuplot.cc:328
void set_ylabel(const string &_ylabel)
set x axis label
Definition: Gnuplot.cc:278