80 std::vector<double> _xdata;
81 std::vector<double> _ydata;
83 void plot_point( cairo_t *cairo,
double x,
double y );
96 XYGraph(
const std::vector<double> &xdata,
97 const std::vector<double> &ydata );
112 virtual void plot( cairo_t *cairo,
const Coordmapper *cm,
const double range[4] );
118 virtual void plot_sample( cairo_t *cairo,
double x,
double y,
double width,
double height );
125 virtual void get_bbox(
double bbox[4] );
129 void set_data(
const std::vector<double> &xdata,
130 const std::vector<double> &ydata );
149 double linewidth = 1.0 );
Definition: xygraph.hpp:56
virtual void plot_sample(cairo_t *cairo, double x, double y, double width, double height)
Plot sample for legend.
Definition: xygraph.hpp:62
Definition: xygraph.hpp:61
virtual void get_bbox(double bbox[4])
Get bounding box of graph.
void set_data(const std::vector< double > &xdata, const std::vector< double > &ydata)
Set new data arrays.
Abstract base class for drawable plots.
Definition: graph.hpp:56
virtual ~XYGraph()
Destructor.
Definition: xygraph.hpp:101
Base for plottable graphs.
Definition: xygraph.hpp:55
1D and 2D coordinate transformations for plotter.
void set_point_style(point_style_e pointstyle, bool filled=true, double scale=1.0)
Set point style.
void set_line_width(double linewidth)
Set line width.
void set_line_style(line_style_e linestyle, double linewidth=1.0)
Set line style.
Linear-linear 2D coordinate mapper.
Definition: coordmapper.hpp:119
Definition: xygraph.hpp:63
XYGraph()
Default constructor for empty graph.
Class for XY-type simple graph plots.
Definition: xygraph.hpp:71
Color class for plotting.
Definition: color.hpp:53
virtual void plot(cairo_t *cairo, const Coordmapper *cm, const double range[4])
Plot graph with cairo.
point_style_e
Definition: xygraph.hpp:60
void set_color(const Color &color)
Set graph color.
line_style_e
Definition: xygraph.hpp:54