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