Structure storing the data to for a 2D plot. More...
Public Member Functions | |
Data2d (const std::string &title) | |
Initializes with the values from m_defaultStyle and m_defaultErrorBars. | |
std::string | GetCommand () const override |
Returns the plot type ("plot" or "splot"). | |
bool | IsEmpty () const override |
Checks to see if this GnuplotDataset is empty. | |
void | PrintDataFile (std::ostream &os, bool generateOneOutputFile) const override |
Print the inline data file contents trailing the plot command. | |
void | PrintExpression (std::ostream &os, bool generateOneOutputFile, unsigned int dataFileDatasetIndex, std::string &dataFileName) const override |
Prints the plot description used as argument to (s)plot. | |
![]() | |
Data (const std::string &title) | |
Initializes the reference counter to 1 and sets m_title and m_extra. | |
virtual | ~Data () |
Required. | |
virtual std::string | GetCommand () const =0 |
Returns the plot type ("plot" or "splot"). | |
virtual bool | IsEmpty () const =0 |
Checks to see if this GnuplotDataset is empty. | |
virtual void | PrintDataFile (std::ostream &os, bool generateOneOutputFile) const =0 |
Print the inline data file contents trailing the plot command. | |
virtual void | PrintExpression (std::ostream &os, bool generateOneOutputFile, unsigned int dataFileDatasetIndex, std::string &dataFileName) const =0 |
Prints the plot description used as argument to (s)plot. | |
Public Attributes | |
ErrorBars | m_errorBars |
Whether errorbars should be used for this dataset. | |
PointSet | m_pointset |
The set of points in this data set. | |
Style | m_style |
The plotting style to use for this dataset. | |
![]() | |
std::string | m_extra |
Extra parameters for the plot. | |
unsigned int | m_references |
ref/unref counter for garbage collection | |
std::string | m_title |
Dataset title. | |
Structure storing the data to for a 2D plot.
Definition at line 172 of file gnuplot.cc.
ns3::Gnuplot2dDataset::Data2d::Data2d | ( | const std::string & | title | ) |
Initializes with the values from m_defaultStyle and m_defaultErrorBars.
title | Dataset title |
Definition at line 196 of file gnuplot.cc.
|
overridevirtual |
Returns the plot type ("plot" or "splot").
Implements ns3::GnuplotDataset::Data.
Definition at line 204 of file gnuplot.cc.
|
overridevirtual |
Checks to see if this GnuplotDataset is empty.
Implements ns3::GnuplotDataset::Data.
Definition at line 335 of file gnuplot.cc.
|
overridevirtual |
Print the inline data file contents trailing the plot command.
Empty for functions.
os | Output stream |
generateOneOutputFile | If true, generate only one output file. |
Implements ns3::GnuplotDataset::Data.
Definition at line 294 of file gnuplot.cc.
References ns3::Gnuplot2dDataset::NONE, ns3::Gnuplot2dDataset::X, ns3::Gnuplot2dDataset::XY, and ns3::Gnuplot2dDataset::Y.
|
overridevirtual |
Prints the plot description used as argument to (s)plot.
Either the function expression or a datafile description. Should include m_title and m_extra in the output.
If more than one output file is being generated, i.e. separate data and control files, then the index for the current dataset and the name for the data file are also included.
os | Output stream |
generateOneOutputFile | If true, generate only one output file. |
dataFileDatasetIndex | Dataset Index |
dataFileName | Dataset file name |
Implements ns3::GnuplotDataset::Data.
Definition at line 210 of file gnuplot.cc.
References ns3::Gnuplot2dDataset::DOTS, ns3::Gnuplot2dDataset::FSTEPS, ns3::Gnuplot2dDataset::HISTEPS, ns3::Gnuplot2dDataset::IMPULSES, ns3::Gnuplot2dDataset::LINES, ns3::Gnuplot2dDataset::LINES_POINTS, ns3::Gnuplot2dDataset::NONE, ns3::Gnuplot2dDataset::POINTS, ns3::Gnuplot2dDataset::STEPS, ns3::Gnuplot2dDataset::X, ns3::Gnuplot2dDataset::XY, and ns3::Gnuplot2dDataset::Y.
ErrorBars ns3::Gnuplot2dDataset::Data2d::m_errorBars |
Whether errorbars should be used for this dataset.
Definition at line 177 of file gnuplot.cc.
PointSet ns3::Gnuplot2dDataset::Data2d::m_pointset |
The set of points in this data set.
Definition at line 179 of file gnuplot.cc.
Style ns3::Gnuplot2dDataset::Data2d::m_style |
The plotting style to use for this dataset.
Definition at line 176 of file gnuplot.cc.