2d plot object. More...
#include <gnugraph.h>
Public Member Functions | |
void | addcommand (const std::string &gcom) |
Add GNUplot command. More... | |
void | addcurve (const Matrix &data, const std::string &label="", LineType_en enLineType=DATAPOINTS) |
Add a curve on the graphic. More... | |
void | dump (void) |
Method to dump the content of Plot2d to stdout. More... | |
void | gnuplot (void) |
Creates a GNUplot graphic. More... | |
Plot2d (void) | |
Constructor. More... | |
void | settitle (const std::string &t) |
Set the title. More... | |
void | setxlabel (const std::string &t) |
Set the x axis name. More... | |
void | setylabel (const std::string &t) |
Set the y axis name. More... | |
Private Attributes | |
std::string | gnucommand |
GNU plot command. More... | |
std::string | title |
Graph title. More... | |
VectorCurves | vCurves |
std::string | xlabel |
Graph x axis. More... | |
std::string | ylabel |
Graph y axis. More... | |
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.
|
private |
GNU plot command.
Definition at line 165 of file gnugraph.h.
|
private |
Graph title.
Definition at line 162 of file gnugraph.h.
|
private |
Definition at line 167 of file gnugraph.h.
|
private |
Graph x axis.
Definition at line 163 of file gnugraph.h.
|
private |
Graph y axis.
Definition at line 164 of file gnugraph.h.