ROBOOP, A Robotics Object Oriented Package in C++
Plot2d Class Reference

2d plot object. More...

#include <gnugraph.h>

Inheritance diagram for Plot2d:
Plot_file

Public Member Functions

 Plot2d (void)
 Constructor.
 
void dump (void)
 Method to dump the content of Plot2d to stdout.
 
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.
 
void addcurve (const Matrix &data, const std::string &label="", LineType_en enLineType=DATAPOINTS)
 Add a curve on the graphic.
 
void gnuplot (void)
 Creates a GNUplot graphic.
 
void addcommand (const std::string &gcom)
 Add GNUplot command.
 

Private Attributes

std::string title
 Graph title.
 
std::string xlabel
 Graph x axis.
 
std::string ylabel
 Graph y axis.
 
std::string gnucommand
 GNU plot command.
 
VectorCurves vCurves
 

Detailed Description

2d plot object.

Definition at line 145 of file gnugraph.h.