Public Member Functions

ns3::Gnuplot Class Reference

a simple class to generate gnuplot-ready plotting commands from a set of datasets. More...

#include <gnuplot.h>

List of all members.

Public Member Functions

 Gnuplot (std::string pngFilename)
void SetLegend (std::string xLegend, std::string yLegend)
void AddDataset (const GnuplotDataset &dataset)
void GenerateOutput (std::ostream &os)

Detailed Description

a simple class to generate gnuplot-ready plotting commands from a set of datasets.

This class really represents a single graph on which multiple datasets can be plotted.


Constructor & Destructor Documentation

ns3::Gnuplot::Gnuplot ( std::string  pngFilename  ) 
Parameters:
pngFilename the name of the file where the png rendering of the graph will be generated if you feed the command stream output by Gnuplot::GenerateOutput to the gnuplot program.

Member Function Documentation

void ns3::Gnuplot::AddDataset ( const GnuplotDataset dataset  ) 
Parameters:
dataset add a dataset to the graph to be plotted.
void ns3::Gnuplot::GenerateOutput ( std::ostream &  os  ) 
Parameters:
os the output stream on which the relevant gnuplot commands should be generated.
void ns3::Gnuplot::SetLegend ( std::string  xLegend,
std::string  yLegend 
)
Parameters:
xLegend the legend for the x horizontal axis
yLegend the legend for the y vertical axis

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