Class to represent a 3D points plot. More...
#include "gnuplot.h"
Classes | |
struct | Data3d |
Structure storing the data for a 3D plot. More... | |
struct | Point |
A point in a 3D plot. More... | |
Public Member Functions | |
Gnuplot3dDataset (const std::string &title="Untitled") | |
void | Add (double x, double y, double z) |
void | AddEmptyLine () |
Add an empty line in the data output sequence. More... | |
void | SetStyle (const std::string &style) |
Public Member Functions inherited from ns3::GnuplotDataset | |
GnuplotDataset (const GnuplotDataset &original) | |
Reference-counting copy constructor. More... | |
~GnuplotDataset () | |
Reference-counting destructor. More... | |
GnuplotDataset & | operator= (const GnuplotDataset &original) |
Reference-counting assignment operator. More... | |
void | SetExtra (const std::string &extra) |
Add extra formatting parameters to this dataset. More... | |
void | SetTitle (const std::string &title) |
Change line title. More... | |
Static Public Member Functions | |
static void | SetDefaultStyle (const std::string &style) |
Change default style for all newly created objects. More... | |
Static Public Member Functions inherited from ns3::GnuplotDataset | |
static void | SetDefaultExtra (const std::string &extra) |
Change extra formatting style parameters for newly created objects. More... | |
Private Types | |
typedef std::vector< struct Point > | PointSet |
The set of points in the dataset. More... | |
Static Private Attributes | |
static std::string | m_defaultStyle = "" |
default plot style More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::GnuplotDataset | |
GnuplotDataset (struct Data *data) | |
Called by constructors of derived classes. More... | |
Protected Attributes inherited from ns3::GnuplotDataset | |
struct Data * | m_data |
Reference counted data object. More... | |
Static Protected Attributes inherited from ns3::GnuplotDataset | |
static std::string | m_defaultExtra = "" |
Extra gnuplot parameters set on every newly created dataset. More... | |
Class to represent a 3D points plot.
Set the line or points style using SetStyle() and set points using Add().
|
private |
ns3::Gnuplot3dDataset::Gnuplot3dDataset | ( | const std::string & | title = "Untitled" | ) |
title | the title to be associated to this dataset. |
Create an empty dataset. Usually, the dataset's title is displayed in the legend box.
Definition at line 579 of file gnuplot.cc.
void ns3::Gnuplot3dDataset::Add | ( | double | x, |
double | y, | ||
double | z | ||
) |
x | x coord to new data point |
y | y coord to new data point |
z | z coord to new data point |
Use this method to add a new 3D point
Definition at line 596 of file gnuplot.cc.
References data, ns3::GnuplotDataset::m_data, and two-ray-to-three-gpp-ch-calibration::x.
Referenced by anonymous_namespace{gnuplot-example.cc}::Create3DPlotFile(), and TestProbabilistic().
void ns3::Gnuplot3dDataset::AddEmptyLine | ( | ) |
Add an empty line in the data output sequence.
Empty lines in the plot data break continuous lines and do other things in the output.
Definition at line 607 of file gnuplot.cc.
References data, and ns3::GnuplotDataset::m_data.
Referenced by anonymous_namespace{gnuplot-example.cc}::Create3DPlotFile(), and TestProbabilistic().
|
static |
Change default style for all newly created objects.
style | the style of plotting to use for newly created datasets. |
Definition at line 585 of file gnuplot.cc.
References m_defaultStyle.
void ns3::Gnuplot3dDataset::SetStyle | ( | const std::string & | style | ) |
style | the style of plotting to use for this dataset. |
Definition at line 590 of file gnuplot.cc.
References ns3::GnuplotDataset::m_data.
Referenced by anonymous_namespace{gnuplot-example.cc}::Create3DPlotFile(), and TestProbabilistic().
|
staticprivate |