68 void SetTitle (
const std::string& title);
80 void SetExtra (
const std::string& extra);
185 void Add (
double x,
double y);
194 void Add (
double x,
double y,
double errorDelta);
204 void Add (
double x,
double y,
double xErrorDelta,
double yErrorDelta);
253 Gnuplot2dFunction (
const std::string& title =
"Untitled",
const std::string&
function =
"");
292 void SetStyle (
const std::string& style);
301 void Add (
double x,
double y,
double z);
349 Gnuplot3dFunction (
const std::string& title =
"Untitled",
const std::string&
function =
"");
380 Gnuplot (
const std::string& outputFilename=
"",
const std::string& title =
"");
406 void SetTitle (
const std::string& title);
412 void SetLegend (
const std::string& xLegend,
const std::string& yLegend);
417 void SetExtra (
const std::string& extra);
452 std::ostream &osData,
453 std::string dataFileName);
531 std::ostream &osData,
532 std::string dataFileName);
Structure storing the function to be used for a 3D plot.
Plots m_plots
Plots in the collection.
void AppendExtra(const std::string &extra)
Class to represent a 3D points plot.
Class to represent a 2D points plot.
void SetTitle(const std::string &title)
Change line title.
Abstract class to store a plot line to be used by ns3::Gnuplot.
Gnuplot(const std::string &outputFilename="", const std::string &title="")
Gnuplot2dDataset(const std::string &title="Untitled")
static void SetDefaultExtra(const std::string &extra)
Change extra formatting style parameters for newly created objects.
void Add(double x, double y, double z)
GnuplotDataset & operator=(const GnuplotDataset &original)
Reference-counting assignment operator.
static std::string m_defaultExtra
Extra gnuplot parameters set on every newly created dataset.
void SetFunction(const std::string &function)
void AddDataset(const GnuplotDataset &dataset)
Class to represent a 3D function expression plot.
std::vector< struct Point > PointSet
The set of points in the dataset.
void SetExtra(const std::string &extra)
Add extra formatting parameters to this dataset.
void SetErrorBars(enum ErrorBars errorBars)
~GnuplotDataset()
Reference-counting destructor.
std::vector< GnuplotDataset > Datasets
Type for Datasets to be used in plots.
std::string m_xLegend
X axis legend.
std::string m_outputFilename
Output file name.
void SetOutputFilename(const std::string &outputFilename)
struct Data * m_data
Reference counted data object.
Structure storing the data to for a 2D plot.
a simple class to generate gnuplot-ready plotting commands from a set of datasets.
a simple class to group together multiple gnuplots into one file, e.g.
void SetTitle(const std::string &title)
static std::string m_defaultStyle
default plot style
void AddEmptyLine()
Add an empty line in the data output sequence.
Gnuplot3dDataset(const std::string &title="Untitled")
void GenerateOutput(std::ostream &os)
Writes gnuplot commands and data values to a single output stream.
void Add(double x, double y)
Gnuplot2dFunction(const std::string &title="Untitled", const std::string &function="")
Gnuplot3dFunction(const std::string &title="Untitled", const std::string &function="")
void AddPlot(const Gnuplot &plot)
bool empty
the point is empty
void SetLegend(const std::string &xLegend, const std::string &yLegend)
static void SetDefaultErrorBars(enum ErrorBars errorBars)
Change default errorbars style for all newly created objects.
GnuplotCollection(const std::string &outputFilename)
void GenerateOutput(std::ostream &os)
static void SetDefaultStyle(enum Style style)
Change default style for all newly created objects.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Style
The plotting style to use for this dataset.
ErrorBars
Whether errorbars should be used for this dataset.
Structure storing the data to plot.
Datasets m_datasets
Data sets.
std::vector< struct Point > PointSet
The set of points in the dataset.
void SetStyle(enum Style style)
void SetExtra(const std::string &extra)
void SetStyle(const std::string &style)
std::string m_outputFilename
Output file name.
std::string m_extra
extra parameters for the plot
bool empty
the point is empty
void SetTerminal(const std::string &terminal)
std::vector< Gnuplot > Plots
Type of the Gnuplot collection.
unsigned int m_dataFileDatasetIndex
Data set index to plot.
std::string m_terminal
Gnuplot "terminal" to use.
void SetFunction(const std::string &function)
std::string m_title
Plot title.
GnuplotDataset(const GnuplotDataset &original)
Reference-counting copy constructor.
bool m_generateOneOutputFile
true if only one plot will be generated
Class to represent a 2D function expression plot.
Structure storing the data for a 3D plot.
static void SetDefaultStyle(const std::string &style)
Change default style for all newly created objects.
static std::string DetectTerminal(const std::string &filename)
Crude attempt to auto-detect the correct terminal setting by inspecting the filename's extension...
std::string m_yLegend
Y axis legend.
void AddEmptyLine()
Add an empty line in the data output sequence.
static enum Style m_defaultStyle
default plot style
void SetDataFileDatasetIndex(unsigned int index)
Sets the current data stream index in the data file.
std::string m_terminal
Gnuplot "terminal" to use.
void SetTerminal(const std::string &terminal)
Structure storing the function to be used for a 2D plot.
Gnuplot & GetPlot(unsigned int id)
Return a pointer to one of the added plots.
static enum ErrorBars m_defaultErrorBars
default error bars type