Class to represent a 2D function expression plot. More...
#include "gnuplot.h"
Inheritance diagram for ns3::Gnuplot2dFunction:
Collaboration diagram for ns3::Gnuplot2dFunction:Classes | |
| struct | Function2d |
| Structure storing the function to be used for a 2D plot. More... | |
Public Member Functions | |
| Gnuplot2dFunction (const std::string &title="Untitled", const std::string &function="") | |
| void | SetFunction (const std::string &function) |
Public Member Functions inherited from ns3::GnuplotDataset | |
| GnuplotDataset (const GnuplotDataset &original) | |
| Reference-counting copy constructor. | |
| ~GnuplotDataset () | |
| Reference-counting destructor. | |
| GnuplotDataset & | operator= (const GnuplotDataset &original) |
| Reference-counting assignment operator. | |
| void | SetExtra (const std::string &extra) |
| Add extra formatting parameters to this dataset. | |
| void | SetTitle (const std::string &title) |
| Change line title. | |
Additional Inherited Members | |
Static Public Member Functions inherited from ns3::GnuplotDataset | |
| static void | SetDefaultExtra (const std::string &extra) |
| Change extra formatting style parameters for newly created objects. | |
Protected Member Functions inherited from ns3::GnuplotDataset | |
| 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 function expression plot.
Since the function expression is not escaped, styles and extras could just as well be included in the expression string.
| ns3::Gnuplot2dFunction::Gnuplot2dFunction | ( | const std::string & | title = "Untitled", |
| const std::string & | function = "" ) |
| title | the title to be associated to this dataset. |
| function | function to plot |
Create an function dataset. Usually, the dataset's title is displayed in the legend box.
Definition at line 490 of file gnuplot.cc.
References ns3::GnuplotDataset::GnuplotDataset().
Here is the call graph for this function:| void ns3::Gnuplot2dFunction::SetFunction | ( | const std::string & | function | ) |
| function | new function string to set |
Definition at line 496 of file gnuplot.cc.
References ns3::GnuplotDataset::m_data.