Class to represent a 3D points plot. Set the line or points style using SetStyle() and set points using Add(). More...
#include <gnuplot.h>
Classes | |
struct | Data3d |
struct | Point |
Public Member Functions | |
Gnuplot3dDataset (const std::string &title="Untitled") | |
void | Add (double x, double y, double z) |
void | AddEmptyLine () |
void | SetStyle (const std::string &style) |
![]() | |
GnuplotDataset (const GnuplotDataset &original) | |
~GnuplotDataset () | |
GnuplotDataset & | operator= (const GnuplotDataset &original) |
void | SetExtra (const std::string &extra) |
Add extra formatting parameters to this dataset. | |
void | SetTitle (const std::string &title) |
Change line title. |
Static Public Member Functions | |
static void | SetDefaultStyle (const std::string &style) |
![]() | |
static void | SetDefaultExtra (const std::string &extra) |
Change extra formatting style parameters for newly created objects. |
Private Types | |
typedef std::vector< struct Point > | PointSet |
Static Private Attributes | |
static std::string | m_defaultStyle = "" |
Additional Inherited Members | |
![]() | |
GnuplotDataset (struct Data *data) | |
![]() | |
struct Data * | m_data |
![]() | |
static std::string | m_defaultExtra = "" |
Extra gnuplot parameters set on every newly created dataset. |
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 468 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 485 of file gnuplot.cc.
References ns3::Gnuplot3dDataset::Point::empty, ns3::GnuplotDataset::m_data, sample-rng-plot::x, ns3::Gnuplot3dDataset::Point::x, ns3::Gnuplot3dDataset::Point::y, and ns3::Gnuplot3dDataset::Point::z.
Referenced by 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 496 of file gnuplot.cc.
References ns3::Gnuplot3dDataset::Point::empty, and ns3::GnuplotDataset::m_data.
Referenced by TestProbabilistic().
|
static |
Change default style for all newly created objects.
style | the style of plotting to use for newly created datasets. |
Definition at line 474 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 479 of file gnuplot.cc.
References ns3::GnuplotDataset::m_data.
Referenced by TestProbabilistic().
|
staticprivate |
Definition at line 300 of file gnuplot.h.
Referenced by SetDefaultStyle().