ns-3
|
a simple class to group together multiple gnuplots into one file, e.g. for PDF multi-page output terminals. More...
#include <gnuplot.h>
Public Member Functions | |
GnuplotCollection (const std::string &outputFilename) | |
void | SetTerminal (const std::string &terminal) |
void | AddPlot (const Gnuplot &plot) |
Gnuplot & | GetPlot (unsigned int id) |
void | GenerateOutput (std::ostream &os) const |
a simple class to group together multiple gnuplots into one file, e.g. for PDF multi-page output terminals.
ns3::GnuplotCollection::GnuplotCollection | ( | const std::string & | outputFilename | ) |
outputFilename | the name of the file where the rendering of the graph will be generated if you feed the command stream output by GnuplotCollection::GenerateOutput to the gnuplot program. |
void ns3::GnuplotCollection::AddPlot | ( | const Gnuplot & | plot | ) |
plot | add a plot to the collection to be plotted. |
void ns3::GnuplotCollection::GenerateOutput | ( | std::ostream & | os | ) | const |
os | the output stream on which the relevant gnuplot commands should be generated. |
Gnuplot & ns3::GnuplotCollection::GetPlot | ( | unsigned int | id | ) |
Return a pointer to one of the added plots.
id | index of plot to return |
void ns3::GnuplotCollection::SetTerminal | ( | const std::string & | terminal | ) |
terminal | terminal setting string for output. The default terminal string is guessed from the output filename's extension. |