2d plot object. More...
#include <gnugraph.h>

Public Member Functions | |
| void | addcommand (const std::string &gcom) |
| Add GNUplot command. | |
| void | addcurve (const Matrix &data, const std::string &label="", LineType_en enLineType=DATAPOINTS) |
| Add a curve on the graphic. | |
| void | dump (void) |
| Method to dump the content of Plot2d to stdout. | |
| void | gnuplot (void) |
| Creates a GNUplot graphic. | |
| Plot2d (void) | |
| Constructor. | |
| void | settitle (const std::string &t) |
| Set the title. | |
| void | setxlabel (const std::string &t) |
| Set the x axis name. | |
| void | setylabel (const std::string &t) |
| Set the y axis name. | |
Private Attributes | |
| std::string | gnucommand |
| GNU plot command. | |
| std::string | title |
| Graph title. | |
| VectorCurves | vCurves |
| std::string | xlabel |
| Graph x axis. | |
| std::string | ylabel |
| Graph y axis. | |
2d plot object.
Definition at line 149 of file gnugraph.h.
| Plot2d::Plot2d | ( | void | ) |
Constructor.
Definition at line 128 of file gnugraph.cpp.
| void Plot2d::addcommand | ( | const std::string & | gcom | ) |
Add GNUplot command.
Definition at line 291 of file gnugraph.cpp.
| void Plot2d::addcurve | ( | const Matrix & | data, |
| const std::string & | label = "", |
||
| LineType_en | enLineType = DATAPOINTS |
||
| ) |
Add a curve on the graphic.
Definition at line 269 of file gnugraph.cpp.
| void Plot2d::dump | ( | void | ) |
Method to dump the content of Plot2d to stdout.
Definition at line 315 of file gnugraph.cpp.
| void Plot2d::gnuplot | ( | void | ) |
Creates a GNUplot graphic.
Definition at line 133 of file gnugraph.cpp.
| void Plot2d::settitle | ( | const std::string & | t | ) |
Set the title.
Definition at line 297 of file gnugraph.cpp.
| void Plot2d::setxlabel | ( | const std::string & | t | ) |
Set the x axis name.
Definition at line 303 of file gnugraph.cpp.
| void Plot2d::setylabel | ( | const std::string & | t | ) |
Set the y axis name.
Definition at line 309 of file gnugraph.cpp.
std::string Plot2d::gnucommand [private] |
GNU plot command.
Definition at line 165 of file gnugraph.h.
std::string Plot2d::title [private] |
Graph title.
Definition at line 162 of file gnugraph.h.
VectorCurves Plot2d::vCurves [private] |
Definition at line 167 of file gnugraph.h.
std::string Plot2d::xlabel [private] |
Graph x axis.
Definition at line 163 of file gnugraph.h.
std::string Plot2d::ylabel [private] |
Graph y axis.
Definition at line 164 of file gnugraph.h.