Class to represent a 2D points plot. More...
#include "gnuplot.h"
Inheritance diagram for ns3::Gnuplot2dDataset:
Collaboration diagram for ns3::Gnuplot2dDataset:Classes | |
| struct | Data2d |
| Structure storing the data to for a 2D plot. More... | |
| struct | Point |
| A point in a 2D plot. More... | |
Public Types | |
| enum | ErrorBars { NONE , X , Y , XY , NONE , X , Y , XY } |
| Whether errorbars should be used for this dataset. More... | |
| enum | ErrorBars { NONE , X , Y , XY , NONE , X , Y , XY } |
| Whether errorbars should be used for this dataset. More... | |
| enum | Style { LINES , POINTS , LINES_POINTS , DOTS , IMPULSES , STEPS , FSTEPS , HISTEPS , FILLEDCURVE , LINES , POINTS , LINES_POINTS , DOTS , IMPULSES , STEPS , FSTEPS , HISTEPS , FILLEDCURVE } |
| The plotting style to use for this dataset. More... | |
| enum | Style { LINES , POINTS , LINES_POINTS , DOTS , IMPULSES , STEPS , FSTEPS , HISTEPS , FILLEDCURVE , LINES , POINTS , LINES_POINTS , DOTS , IMPULSES , STEPS , FSTEPS , HISTEPS , FILLEDCURVE } |
| The plotting style to use for this dataset. More... | |
Public Member Functions | |
| Gnuplot2dDataset (const std::string &title="Untitled") | |
| Gnuplot2dDataset (const std::string &title="Untitled") | |
| void | Add (double x, double y) |
| void | Add (double x, double y) |
| void | Add (double x, double y, double errorDelta) |
| void | Add (double x, double y, double errorDelta) |
| void | Add (double x, double y, double xErrorDelta, double yErrorDelta) |
| void | Add (double x, double y, double xErrorDelta, double yErrorDelta) |
| void | AddEmptyLine () |
| Add an empty line in the data output sequence. | |
| void | AddEmptyLine () |
| Add an empty line in the data output sequence. | |
| void | SetErrorBars (ErrorBars errorBars) |
| void | SetErrorBars (ErrorBars errorBars) |
| void | SetStyle (Style style) |
| void | SetStyle (Style style) |
Public Member Functions inherited from ns3::GnuplotDataset | |
| GnuplotDataset (const GnuplotDataset &original) | |
| Reference-counting copy constructor. | |
| GnuplotDataset (const GnuplotDataset &original) | |
| Reference-counting copy constructor. | |
| ~GnuplotDataset () | |
| Reference-counting destructor. | |
| ~GnuplotDataset () | |
| Reference-counting destructor. | |
| GnuplotDataset & | operator= (const GnuplotDataset &original) |
| Reference-counting assignment operator. | |
| GnuplotDataset & | operator= (const GnuplotDataset &original) |
| Reference-counting assignment operator. | |
| void | SetExtra (const std::string &extra) |
| Add extra formatting parameters to this dataset. | |
| void | SetExtra (const std::string &extra) |
| Add extra formatting parameters to this dataset. | |
| void | SetTitle (const std::string &title) |
| Change line title. | |
| void | SetTitle (const std::string &title) |
| Change line title. | |
Static Public Member Functions | |
| static void | SetDefaultErrorBars (ErrorBars errorBars) |
| Change default errorbars style for all newly created objects. | |
| static void | SetDefaultErrorBars (ErrorBars errorBars) |
| Change default errorbars style for all newly created objects. | |
| static void | SetDefaultStyle (Style style) |
| Change default style for all newly created objects. | |
| static void | SetDefaultStyle (Style style) |
| Change default style for all newly created objects. | |
Static Public Member Functions inherited from ns3::GnuplotDataset | |
| static void | SetDefaultExtra (const std::string &extra) |
| Change extra formatting style parameters for newly created objects. | |
| static void | SetDefaultExtra (const std::string &extra) |
| Change extra formatting style parameters for newly created objects. | |
Private Types | |
| typedef std::vector< Point > | PointSet |
| The set of points in the dataset. | |
| typedef std::vector< Point > | PointSet |
| The set of points in the dataset. | |
Static Private Attributes | |
| static ErrorBars | m_defaultErrorBars = NONE |
| default error bars type | |
| static Style | m_defaultStyle = LINES |
| default plot style | |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::GnuplotDataset | |
| GnuplotDataset (Data *data) | |
| Called by constructors of derived classes. | |
| GnuplotDataset (Data *data) | |
| Called by constructors of derived classes. | |
Protected Attributes inherited from ns3::GnuplotDataset | |
| Data * | m_data |
| Reference counted data object. | |
Static Protected Attributes inherited from ns3::GnuplotDataset | |
| static std::string | m_defaultExtra = "" |
| Extra gnuplot parameters set on every newly created dataset. | |
Class to represent a 2D points plot.
Set the line or points style using SetStyle() and set points using Add().
|
private |
|
private |
The set of points in the dataset.
Definition at line 216 of file gnuplot_new.h.
Whether errorbars should be used for this dataset.
| Enumerator | |
|---|---|
| NONE | |
| X | |
| Y | |
| XY | |
| NONE | |
| X | |
| Y | |
| XY | |
Definition at line 126 of file gnuplot_new.h.
The plotting style to use for this dataset.
| Enumerator | |
|---|---|
| LINES | |
| POINTS | |
| LINES_POINTS | |
| DOTS | |
| IMPULSES | |
| STEPS | |
| FSTEPS | |
| HISTEPS | |
| FILLEDCURVE | |
| LINES | |
| POINTS | |
| LINES_POINTS | |
| DOTS | |
| IMPULSES | |
| STEPS | |
| FSTEPS | |
| HISTEPS | |
| FILLEDCURVE | |
Definition at line 110 of file gnuplot_new.h.
| ns3::Gnuplot2dDataset::Gnuplot2dDataset | ( | const std::string & | title = "Untitled" | ) |
| title | the title to be associated to this dataset (default "Untitled"). |
Create an empty dataset. Usually, the dataset's title is displayed in the legend box.
Definition at line 339 of file gnuplot.cc.
| ns3::Gnuplot2dDataset::Gnuplot2dDataset | ( | const std::string & | title = "Untitled" | ) |
| title | the title to be associated to this dataset (default "Untitled"). |
Create an empty dataset. Usually, the dataset's title is displayed in the legend box.
| x | x coord to new data point |
| y | y coord to new data point |
Use this method with error bar style NONE.
Definition at line 369 of file gnuplot.cc.
References data, ns3::Gnuplot2dDataset::Point::empty, ns3::GnuplotDataset::m_data, NONE, and NS_ASSERT.
Referenced by ns3::QKDGraph::QKDGraph(), Experiment::AdvancePosition(), NodeStatistics::AdvancePosition(), NodeStatistics::AdvancePosition(), NodeStatistics::CheckStatistics(), Experiment::CheckThroughput(), GraphBattery1(), GraphBattery2(), GraphBattery3(), GraphBattery4(), GraphBattery5(), Experiment::IncrementCw(), ns3::QKDGraph::PrintGraph(), ns3::QKDGraph::ProcessMCurrent(), ns3::QKDTotalGraph::ProcessMCurrent(), ns3::QKDGraph::ProcessMStatusHelpFunction(), and ns3::QKDGraph::ProcessMThrStatus().
Here is the caller graph for this function:| x | x coord to new data point |
| y | y coord to new data point |
Use this method with error bar style NONE.
| 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.
Definition at line 383 of file gnuplot.cc.
References ns3::Create(), data, ns3::Gnuplot2dDataset::Point::empty, ns3::GnuplotDataset::m_data, NS_ASSERT, X, and Y.
Here is the call graph for this function:| 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.
| 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.
Definition at line 398 of file gnuplot.cc.
References ns3::Create(), data, ns3::Gnuplot2dDataset::Point::empty, ns3::GnuplotDataset::m_data, NS_ASSERT, and XY.
Here is the call graph for this function:| 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.
| 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.
Definition at line 412 of file gnuplot.cc.
References data, ns3::Gnuplot2dDataset::Point::empty, and ns3::GnuplotDataset::m_data.
| 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.
Change default errorbars style for all newly created objects.
| errorBars | the style of errorbars to use for newly created datasets. |
Definition at line 357 of file gnuplot.cc.
References ns3::Create(), and m_defaultErrorBars.
Referenced by ns3::GnuplotAggregator::Set2dDatasetDefaultErrorBars().
Here is the call graph for this function:
Here is the caller graph for this function:Change default errorbars style for all newly created objects.
| errorBars | the style of errorbars to use for newly created datasets. |
Change default style for all newly created objects.
| style | the style of plotting to use for newly created datasets. |
Definition at line 345 of file gnuplot.cc.
References ns3::Create(), and m_defaultStyle.
Referenced by ns3::GnuplotAggregator::Set2dDatasetDefaultStyle().
Here is the call graph for this function:
Here is the caller graph for this function:Change default style for all newly created objects.
| style | the style of plotting to use for newly created datasets. |
| 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.
Definition at line 363 of file gnuplot.cc.
References ns3::Create(), and ns3::GnuplotDataset::m_data.
Here is the call graph for this function:| 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.
| style | the style of plotting to use for this dataset. |
Definition at line 351 of file gnuplot.cc.
References ns3::Create(), and ns3::GnuplotDataset::m_data.
Referenced by Experiment::Experiment(), ns3::QKDGraph::QKDGraph(), ns3::QKDTotalGraph::Init(), TestDeterministic(), and TestDeterministicByTime().
Here is the call graph for this function:
Here is the caller graph for this function:| style | the style of plotting to use for this dataset. |
default error bars type
Default error bars type static instance.
Definition at line 219 of file gnuplot.h.
Referenced by SetDefaultErrorBars().
default plot style
Default plot style static instance.
Definition at line 218 of file gnuplot.h.
Referenced by SetDefaultStyle().