linbox
Public Member Functions
PlotGraph< NAM > Class Template Reference

The graph. More...

#include <benchmark.h>

Public Member Functions

 PlotGraph (PlotData< NAM > &data, PlotStyle &style)
 Constructor for the PlotGraph class.
 
void setOutFilename (std::string filename)
 sets the ouput file name.
 
void print_latex ()
 Prints data in a latex tabular.
 
void print_gnuplot ()
 Plots the data with gnuplot.
 

Detailed Description

template<class NAM>
class LinBox::PlotGraph< NAM >

The graph.

  This class joins a PlotStyle and a PlotData to build up a graph.  A
  filename should be provided as well, indicating where the output
  graph and scripts will be generated.
Warning
the filename will get a random suffix before the extension so as not to overwrite files "par inadvertance".

Constructor & Destructor Documentation

PlotGraph ( PlotData< NAM > &  data,
PlotStyle style 
)
inline

Constructor for the PlotGraph class.

      Plots a series of data according to a style.
Parameters
datadata to be plot, will be processed by the style
stylesets parameters to gnuplot to achieve a nice plot.

Member Function Documentation

void setOutFilename ( std::string  filename)
inline

sets the ouput file name.

      All output is put in a "data" subfolder.
Warning
Since no file is overwritten, this directory can rapidly get very populated.
void print_latex ( )
inline

Prints data in a latex tabular.

Todo:
check FN opened.
void print_gnuplot ( )
inline

Plots the data with gnuplot.

       Produces data in a .dat file, creates a .gp gnuplot script and
       outputs a graph calling gnuplot.
Warning
If gnuplot is not available, fall back to the latex method.

The documentation for this class was generated from the following file: