Basic Image AlgorithmS Library
2.8.0
|
Use this class to plot data as gnuplot does. More...
#include <Utils/GraphPlotter.hh>
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_ |
Use this class to plot data as gnuplot does.
Definition at line 50 of file GraphPlotter.hh.
GraphPlotter::GraphPlotter | ( | ) |
constructor
Definition at line 35 of file GraphPlotter.cpp.
GraphPlotter::~GraphPlotter | ( | ) |
destructor
Definition at line 58 of file GraphPlotter.cpp.
void GraphPlotter::Draw | ( | std::vector< double > & | xValues, |
std::vector< double > & | yValues, | ||
BIAS::ColourRGB< unsigned char > | color, | ||
BIAS::GraphPlotter_DrawStyle | ds = DS_POINT_1 |
||
) |
draws xvalues against yvalues
Definition at line 354 of file GraphPlotter.cpp.
References BIAS::ImageDraw< StorageType >::CircleCenterFilled(), BIAS::DS_LINE, BIAS::DS_POINT_1, BIAS::DS_POINT_2, BIAS::DS_POINT_3, BIAS::DS_POINT_4, BIAS::DS_POINT_5, and BIAS::ImageDraw< StorageType >::Line().
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.
|
protected |
Definition at line 170 of file GraphPlotter.cpp.
References BIAS::ImageDraw< StorageType >::Line(), and BIAS::ImageDraw< StorageType >::Text().
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.
|
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.
|
protected |
Definition at line 123 of file GraphPlotter.hh.
|
protected |
Definition at line 124 of file GraphPlotter.hh.
|
protected |
Definition at line 122 of file GraphPlotter.hh.
|
protected |
Definition at line 126 of file GraphPlotter.hh.
|
protected |
Definition at line 127 of file GraphPlotter.hh.
|
protected |
Definition at line 125 of file GraphPlotter.hh.
|
protected |
Definition at line 128 of file GraphPlotter.hh.
|
protected |
Definition at line 129 of file GraphPlotter.hh.
|
protected |
Definition at line 119 of file GraphPlotter.hh.
|
protected |
Definition at line 115 of file GraphPlotter.hh.
|
protected |
Definition at line 113 of file GraphPlotter.hh.
|
protected |
Definition at line 119 of file GraphPlotter.hh.
|
protected |
Definition at line 116 of file GraphPlotter.hh.
|
protected |
Definition at line 120 of file GraphPlotter.hh.
|
protected |
Definition at line 117 of file GraphPlotter.hh.
|
protected |
Definition at line 117 of file GraphPlotter.hh.
|
protected |
Definition at line 121 of file GraphPlotter.hh.
|
protected |
Definition at line 118 of file GraphPlotter.hh.
|
protected |
Definition at line 116 of file GraphPlotter.hh.
|
protected |
Definition at line 120 of file GraphPlotter.hh.
|
protected |
Definition at line 117 of file GraphPlotter.hh.
|
protected |
Definition at line 117 of file GraphPlotter.hh.
|
protected |
Definition at line 121 of file GraphPlotter.hh.
|
protected |
Definition at line 118 of file GraphPlotter.hh.