a simple class to generate gnuplot-ready plotting commands from a set of datasets.
More...
#include <gnuplot.h>
List of all members.
Static Public Member Functions |
static std::string | DetectTerminal (const std::string &filename) |
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 |
( |
const std::string & |
outputFilename = "" , |
|
|
const std::string & |
title = "" |
|
) |
| |
- Parameters:
-
outputFilename | the name of the file where the rendering of the graph will be generated if you feed the command stream output by Gnuplot::GenerateOutput to the gnuplot program. |
title | title line of the plot page |
Member Function Documentation
- Parameters:
-
dataset | add a dataset to the graph to be plotted. |
void ns3::Gnuplot::AppendExtra |
( |
const std::string & |
extra | ) |
|
- Parameters:
-
extra | append extra gnuplot directive for output. |
std::string ns3::Gnuplot::DetectTerminal |
( |
const std::string & |
filename | ) |
|
|
static |
Crude attempt to auto-detect the correct terminal setting by inspecting the filename's extension.
- Parameters:
-
void ns3::Gnuplot::GenerateOutput |
( |
std::ostream & |
os | ) |
const |
- Parameters:
-
os | the output stream on which the relevant gnuplot commands should be generated. Including output file and terminal headers. |
References NS_ASSERT_MSG.
void ns3::Gnuplot::SetExtra |
( |
const std::string & |
extra | ) |
|
- Parameters:
-
extra | set extra gnuplot directive for output. |
void ns3::Gnuplot::SetLegend |
( |
const std::string & |
xLegend, |
|
|
const std::string & |
yLegend |
|
) |
| |
- Parameters:
-
xLegend | the legend for the x horizontal axis |
yLegend | the legend for the y vertical axis |
void ns3::Gnuplot::SetTerminal |
( |
const std::string & |
terminal | ) |
|
- Parameters:
-
terminal | terminal setting string for output. The default terminal string is "png" |
void ns3::Gnuplot::SetTitle |
( |
const std::string & |
title | ) |
|
- Parameters:
-
title | set new plot title string to use for this plot. |
The documentation for this class was generated from the following files:
- src/tools/model/gnuplot.h
- src/tools/model/gnuplot.cc