25 #ifndef __GRAPHPLOTTER_hh__
26 #define __GRAPHPLOTTER_hh__
29 #include <bias_config.h>
30 #include <Base/Image/Image.hh>
32 #ifndef BIAS_HAVE_OPENCV
33 # error BIAS_HAVE_OPENCV not defined. Please recompile BIAS with USE_OPENCV enabled if you want to use GraphPlotter.
59 void SetXRange(
double minX,
double maxX);
60 void SetYRange(
double minY,
double maxY);
62 void SetXTics(
unsigned xtics);
63 void SetYTics(
unsigned ytics);
65 void SetXLabel(std::string label);
66 void SetYLabel(std::string label);
68 void SetImageSize(
unsigned width,
unsigned height);
70 void SetDrawGrid(
bool drawGrid);
71 void SetAxesToYLeftAndXBottom(
bool fixAxes);
73 void SetLineThickness(
unsigned thickness);
74 void SetTextThickness(
unsigned thickness);
77 std::pair<std::string,BIAS::ColourRGB<unsigned char> > lb;
78 lb = std::make_pair(label,color);
79 labels_.push_back(lb);
87 void Draw(std::vector<double>& xValues,
88 std::vector<double>& yValues,
96 void Draw(std::vector<double>& xValues,
97 std::vector<double>& yValues,
98 std::vector<double>& yStdDeviation,
102 std::vector<std::string> *labels = NULL);
113 std::vector< std::pair<std::string,BIAS::ColourRGB<unsigned char> > >
labels_;
134 #endif // __GRAPHPLOTTER_hh__
std::vector< std::pair< std::string, BIAS::ColourRGB< unsigned char > > > labels_
bool bAutoDetectBordersY_
void SetLabel(std::string label, BIAS::ColourRGB< unsigned char > color)
BIAS::Image< unsigned char > image_
Use this class to plot data as gnuplot does.
bool bAutoDetectBordersX_