Class to represent a 3D points plot. Set the line or points style using SetStyle() and set points using Add().
More...
#include <gnuplot.h>
List of all members.
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.
|
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.
|
Detailed Description
Class to represent a 3D points plot. Set the line or points style using SetStyle() and set points using Add().
Constructor & Destructor Documentation
ns3::Gnuplot3dDataset::Gnuplot3dDataset |
( |
const std::string & |
title = "Untitled" | ) |
|
- Parameters:
-
title | the title to be associated to this dataset. |
Create an empty dataset. Usually, the dataset's title is displayed in the legend box.
Member Function Documentation
void ns3::Gnuplot3dDataset::Add |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
- Parameters:
-
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
References ns3::GnuplotDataset::m_data.
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.
References ns3::GnuplotDataset::m_data.
void ns3::Gnuplot3dDataset::SetDefaultStyle |
( |
const std::string & |
style | ) |
|
|
static |
Change default style for all newly created objects.
- Parameters:
-
style | the style of plotting to use for newly created datasets. |
void ns3::Gnuplot3dDataset::SetStyle |
( |
const std::string & |
style | ) |
|
The documentation for this class was generated from the following files:
- src/tools/model/gnuplot.h
- src/tools/model/gnuplot.cc