Interface for passing data sets to a file and plotting them, if gnuplot is installed.  
|  | 
|  | GnuplotInterface (bool persist=true) | 
|  | The constructor. 
 | 
|  | 
|  | ~GnuplotInterface () | 
|  | The destructor. 
 | 
|  | 
| void | plot (const std::string &filename="") | 
|  | Plots the files for a specific window number, writes a gnuplot and png file. 
 | 
|  | 
| void | resetAll (const bool persist=true) | 
|  | Resets all gnuplot parameters. 
 | 
|  | 
| void | resetPlot () | 
|  | Deletes all plots from a plotting window and resets user-defined options. 
 | 
|  | 
| void | open (const bool persist=true) | 
|  | Opens gnuplot. 
 | 
|  | 
| void | close () | 
|  | Closes gnuplot. 
 | 
|  | 
| void | addFunctionToPlot (const std::string &function, const std::string &options="with lines") | 
|  | Adds a function to list of plots. 
 | 
|  | 
| void | addFileToPlot (const std::string &fileName, const std::string &options="with lines") | 
|  | Adds a file to list of plots. 
 | 
|  | 
| template<class DataX, class DataY> | 
| void | addDataSetToPlot (const DataX &x, const DataY &y, const std::string &fileName, const std::string &options="with lines") | 
|  | Adds a data set and writes a data file. 
 | 
|  | 
| void | setXlabel (const std::string &label) | 
|  | Sets the label for the x-axis. 
 | 
|  | 
| void | setYlabel (const std::string &label) | 
|  | Sets the label for the y-axis. 
 | 
|  | 
| void | setXRange (Scalar min, Scalar max) | 
|  | Sets the range for the x-axis. 
 | 
|  | 
| void | setYRange (Scalar min, Scalar max) | 
|  | Sets the range for the y-axis. 
 | 
|  | 
| void | setOption (const std::string &option) | 
|  | Sets additional user-defined options. 
 | 
|  | 
| void | setOpenPlotWindow (bool openPlotWindow) | 
|  | Define whether the gnuplot window should be opened. 
 | 
|  | 
| void | setCreateImage (bool createImage) | 
|  | Define whether gnuplot should create .png files. 
 | 
|  | 
| void | setDatafileSeparator (char separator) | 
|  | Sets the datafile separator. 
 | 
|  | 
| void | setTerminalType (std::string terminal) | 
|  | Sets the terminal used for interactive output. 
 | 
|  | 
| void | setOutputDirectory (const std::string &outputDirectory) | 
|  | Sets the output directory for data and gnuplot files. 
 | 
|  | 
| void | useDashedLines (bool dashed) | 
|  | Use dashed (true) or solid (false) lines. 
 | 
|  |