Public Member Functions | Private Attributes | List of all members
Plot2d Class Reference

2d plot object. More...

#include <gnugraph.h>

Inheritance diagram for Plot2d:
Inheritance graph
[legend]

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...
 

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 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.

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.

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.


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


kni
Author(s): Martin Günther
autogenerated on Fri Jun 7 2019 22:06:46