Public Member Functions | Private Attributes
Plot2d Class Reference

2d plot object. More...

#include <gnugraph.h>

Inheritance diagram for Plot2d:
Inheritance graph
[legend]

List of all members.

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.

Detailed Description

2d plot object.

Definition at line 149 of file gnugraph.h.


Constructor & Destructor Documentation

Plot2d::Plot2d ( void  )

Constructor.

Definition at line 128 of file gnugraph.cpp.


Member Function Documentation

void Plot2d::addcommand ( const std::string &  gcom)

Add GNUplot command.

Definition at line 286 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 264 of file gnugraph.cpp.

void Plot2d::dump ( void  )

Method to dump the content of Plot2d to stdout.

Definition at line 310 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 292 of file gnugraph.cpp.

void Plot2d::setxlabel ( const std::string &  t)

Set the x axis name.

Definition at line 298 of file gnugraph.cpp.

void Plot2d::setylabel ( const std::string &  t)

Set the y axis name.

Definition at line 304 of file gnugraph.cpp.


Member Data Documentation

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.

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.


The documentation for this class was generated from the following files:


kni
Author(s): Martin Günther
autogenerated on Thu Aug 27 2015 13:40:08