Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BIAS::GraphPlotter Class Reference

Use this class to plot data as gnuplot does. More...

#include <Utils/GraphPlotter.hh>

+ Collaboration diagram for BIAS::GraphPlotter:

Public Member Functions

void Draw (std::vector< double > &xValues, std::vector< double > &yValues, BIAS::ColourRGB< unsigned char > color, BIAS::GraphPlotter_DrawStyle=DS_POINT_1)
 draws xvalues against yvalues More...
 
void Draw (std::vector< double > &xValues, std::vector< double > &yValues, std::vector< double > &yStdDeviation, BIAS::ColourRGB< unsigned char > color, BIAS::ColourRGB< unsigned char > colorSTD, BIAS::GraphPlotter_DrawStyle=DS_POINT_1, std::vector< std::string > *labels=NULL)
 draws xvalues against yvalues with standard deviations as errorbars More...
 
void DrawLabels ()
 
BIAS::Image< unsigned char > GetCopyOfImage ()
 
BIAS::Image< unsigned char > * GetImage ()
 
 GraphPlotter ()
 constructor More...
 
void Reset ()
 
void SetAxesToYLeftAndXBottom (bool fixAxes)
 
void SetDrawGrid (bool drawGrid)
 
void SetImageSize (unsigned width, unsigned height)
 
void SetLabel (std::string label, BIAS::ColourRGB< unsigned char > color)
 
void SetLineThickness (unsigned thickness)
 
void SetTextThickness (unsigned thickness)
 
void SetXLabel (std::string label)
 
void SetXRange (double minX, double maxX)
 
void SetXTics (unsigned xtics)
 
void SetYLabel (std::string label)
 
void SetYRange (double minY, double maxY)
 
void SetYTics (unsigned ytics)
 
 ~GraphPlotter ()
 destructor More...
 

Protected Member Functions

void Prepare_ ()
 

Protected Attributes

bool bAutoDetectBordersX_
 
bool bAutoDetectBordersY_
 
bool bDrawGrid_
 
bool bFixXAxisToBottom_
 
bool bFixYAxisToLeft_
 
bool bPrepared_
 
unsigned dLineThickness_
 
unsigned dTextThickness_
 
unsigned height_
 
BIAS::Image< unsigned char > image_
 
std::vector< std::pair
< std::string, BIAS::ColourRGB
< unsigned char > > > 
labels_
 
unsigned width_
 
double xCoeff_
 
std::string xLabel_
 
double xMax_
 
double xMin_
 
int xOffset_
 
int xTics_
 
double yCoeff_
 
std::string yLabel_
 
double yMax_
 
double yMin_
 
int yOffset_
 
int yTics_
 

Detailed Description

Use this class to plot data as gnuplot does.

Author
ischiller 10/2008

Definition at line 50 of file GraphPlotter.hh.

Constructor & Destructor Documentation

GraphPlotter::GraphPlotter ( )

constructor

Definition at line 35 of file GraphPlotter.cpp.

GraphPlotter::~GraphPlotter ( )

destructor

Definition at line 58 of file GraphPlotter.cpp.

Member Function Documentation

void GraphPlotter::Draw ( std::vector< double > &  xValues,
std::vector< double > &  yValues,
BIAS::ColourRGB< unsigned char >  color,
BIAS::GraphPlotter_DrawStyle  ds = DS_POINT_1 
)
void GraphPlotter::Draw ( std::vector< double > &  xValues,
std::vector< double > &  yValues,
std::vector< double > &  yStdDeviation,
BIAS::ColourRGB< unsigned char >  color,
BIAS::ColourRGB< unsigned char >  colorSTD,
BIAS::GraphPlotter_DrawStyle  ds = DS_POINT_1,
std::vector< std::string > *  labels = NULL 
)

draws xvalues against yvalues with standard deviations as errorbars

Definition at line 425 of file GraphPlotter.cpp.

References BIAS::ImageDraw< StorageType >::Line(), and BIAS::ImageDraw< StorageType >::Text().

void GraphPlotter::DrawLabels ( )

Definition at line 497 of file GraphPlotter.cpp.

References BIAS::ImageDraw< StorageType >::Text().

BIAS::Image< unsigned char > GraphPlotter::GetCopyOfImage ( )

Definition at line 71 of file GraphPlotter.cpp.

BIAS::Image< unsigned char > * GraphPlotter::GetImage ( )

Definition at line 66 of file GraphPlotter.cpp.

void GraphPlotter::Prepare_ ( )
protected
void GraphPlotter::Reset ( )

Definition at line 149 of file GraphPlotter.cpp.

void GraphPlotter::SetAxesToYLeftAndXBottom ( bool  fixAxes)

Definition at line 133 of file GraphPlotter.cpp.

void GraphPlotter::SetDrawGrid ( bool  drawGrid)

Definition at line 127 of file GraphPlotter.cpp.

void GraphPlotter::SetImageSize ( unsigned  width,
unsigned  height 
)

Definition at line 121 of file GraphPlotter.cpp.

void BIAS::GraphPlotter::SetLabel ( std::string  label,
BIAS::ColourRGB< unsigned char >  color 
)
inline

Definition at line 76 of file GraphPlotter.hh.

void GraphPlotter::SetLineThickness ( unsigned  thickness)

Definition at line 139 of file GraphPlotter.cpp.

void GraphPlotter::SetTextThickness ( unsigned  thickness)

Definition at line 144 of file GraphPlotter.cpp.

void GraphPlotter::SetXLabel ( std::string  label)

Definition at line 111 of file GraphPlotter.cpp.

void GraphPlotter::SetXRange ( double  minX,
double  maxX 
)

Definition at line 77 of file GraphPlotter.cpp.

void GraphPlotter::SetXTics ( unsigned  xtics)

Definition at line 101 of file GraphPlotter.cpp.

void GraphPlotter::SetYLabel ( std::string  label)

Definition at line 116 of file GraphPlotter.cpp.

void GraphPlotter::SetYRange ( double  minY,
double  maxY 
)

Definition at line 89 of file GraphPlotter.cpp.

void GraphPlotter::SetYTics ( unsigned  ytics)

Definition at line 106 of file GraphPlotter.cpp.

Member Data Documentation

bool BIAS::GraphPlotter::bAutoDetectBordersX_
protected

Definition at line 123 of file GraphPlotter.hh.

bool BIAS::GraphPlotter::bAutoDetectBordersY_
protected

Definition at line 124 of file GraphPlotter.hh.

bool BIAS::GraphPlotter::bDrawGrid_
protected

Definition at line 122 of file GraphPlotter.hh.

bool BIAS::GraphPlotter::bFixXAxisToBottom_
protected

Definition at line 126 of file GraphPlotter.hh.

bool BIAS::GraphPlotter::bFixYAxisToLeft_
protected

Definition at line 127 of file GraphPlotter.hh.

bool BIAS::GraphPlotter::bPrepared_
protected

Definition at line 125 of file GraphPlotter.hh.

unsigned BIAS::GraphPlotter::dLineThickness_
protected

Definition at line 128 of file GraphPlotter.hh.

unsigned BIAS::GraphPlotter::dTextThickness_
protected

Definition at line 129 of file GraphPlotter.hh.

unsigned BIAS::GraphPlotter::height_
protected

Definition at line 119 of file GraphPlotter.hh.

BIAS::Image<unsigned char> BIAS::GraphPlotter::image_
protected

Definition at line 115 of file GraphPlotter.hh.

std::vector< std::pair<std::string,BIAS::ColourRGB<unsigned char> > > BIAS::GraphPlotter::labels_
protected

Definition at line 113 of file GraphPlotter.hh.

unsigned BIAS::GraphPlotter::width_
protected

Definition at line 119 of file GraphPlotter.hh.

double BIAS::GraphPlotter::xCoeff_
protected

Definition at line 116 of file GraphPlotter.hh.

std::string BIAS::GraphPlotter::xLabel_
protected

Definition at line 120 of file GraphPlotter.hh.

double BIAS::GraphPlotter::xMax_
protected

Definition at line 117 of file GraphPlotter.hh.

double BIAS::GraphPlotter::xMin_
protected

Definition at line 117 of file GraphPlotter.hh.

int BIAS::GraphPlotter::xOffset_
protected

Definition at line 121 of file GraphPlotter.hh.

int BIAS::GraphPlotter::xTics_
protected

Definition at line 118 of file GraphPlotter.hh.

double BIAS::GraphPlotter::yCoeff_
protected

Definition at line 116 of file GraphPlotter.hh.

std::string BIAS::GraphPlotter::yLabel_
protected

Definition at line 120 of file GraphPlotter.hh.

double BIAS::GraphPlotter::yMax_
protected

Definition at line 117 of file GraphPlotter.hh.

double BIAS::GraphPlotter::yMin_
protected

Definition at line 117 of file GraphPlotter.hh.

int BIAS::GraphPlotter::yOffset_
protected

Definition at line 121 of file GraphPlotter.hh.

int BIAS::GraphPlotter::yTics_
protected

Definition at line 118 of file GraphPlotter.hh.


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