Class to represent a 2D points plot. Set the line or points style using SetStyle() and set points using Add().
More...
#include <gnuplot.h>
List of all members.
Public Types |
enum | Style {
LINES,
POINTS,
LINES_POINTS,
DOTS,
IMPULSES,
STEPS,
FSTEPS,
HISTEPS
} |
enum | ErrorBars { NONE,
X,
Y,
XY
} |
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 2D points plot. Set the line or points style using SetStyle() and set points using Add().
Member Enumeration Documentation
Whether errorbars should be used for this dataset.
The plotting style to use for this dataset.
Constructor & Destructor Documentation
ns3::Gnuplot2dDataset::Gnuplot2dDataset |
( |
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::Gnuplot2dDataset::Add |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
void ns3::Gnuplot2dDataset::Add |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
errorDelta |
|
) |
| |
- Parameters:
-
x | x coord to new data point |
y | y coord to new data point |
errorDelta | x and y data point uncertainty |
Use this method with error bar style X or Y.
References ns3::GnuplotDataset::m_data, and NS_ASSERT.
void ns3::Gnuplot2dDataset::Add |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
xErrorDelta, |
|
|
double |
yErrorDelta |
|
) |
| |
- Parameters:
-
x | x coord to new data point |
y | y coord to new data point |
xErrorDelta | x data point uncertainty |
yErrorDelta | y data point uncertainty |
Use this method with error bar style XY.
References ns3::GnuplotDataset::m_data, and NS_ASSERT.
void ns3::Gnuplot2dDataset::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::Gnuplot2dDataset::SetDefaultErrorBars |
( |
enum ErrorBars |
errorBars | ) |
|
|
static |
Change default errorbars style for all newly created objects.
- Parameters:
-
errorBars | the style of errorbars to use for newly created datasets. |
void ns3::Gnuplot2dDataset::SetDefaultStyle |
( |
enum Style |
style | ) |
|
|
static |
Change default style for all newly created objects.
- Parameters:
-
style | the style of plotting to use for newly created datasets. |
void ns3::Gnuplot2dDataset::SetErrorBars |
( |
enum ErrorBars |
errorBars | ) |
|
- Parameters:
-
errorBars | the style of errorbars to display. |
If you use any style other than none, you need to make sure you store the delta information in this dataset with the right GnuplotDataset::Add method.
References ns3::GnuplotDataset::m_data.
void ns3::Gnuplot2dDataset::SetStyle |
( |
enum Style |
style | ) |
|
The documentation for this class was generated from the following files:
- src/tools/model/gnuplot.h
- src/tools/model/gnuplot.cc