117 : _xaxis(xaxis), _yaxis(yaxis), _graph(graph) {}
125 double _range_min[4];
126 double _range_max[4];
139 std::vector<DObj> _dobj;
158 void draw_legend( cairo_t *cairo );
159 void calculate_autoranging(
void );
160 void calculate_ruler_autoenable(
void );
161 void calculate_rulers( cairo_t *cairo,
bool ruler_tic_bbox_test );
162 void calculate_frame( cairo_t *cairo );
163 void draw_frame( cairo_t *cairo );
164 void mirror_rulers(
void );
165 void set_frame_clipping( cairo_t *cairo );
166 void unset_frame_clipping( cairo_t *cairo );
234 void set_title(
const std::string &title );
337 void draw( cairo_t *cairo );
void draw(cairo_t *cairo)
Draw frame and plot contents.
void set_automargin(bool enable)
Set automatic margin setting on or off.
Linear 1D coordinate mapper.
Definition: coordmapper.hpp:57
void get_margins(double margin[4]) const
Get margins.
PlotAxis
Axis specification for plots.
Definition: frame.hpp:81
void set_background(Color &bg)
Set background color.
Definition: frame.hpp:204
Abstract base class for drawable plots.
Definition: graph.hpp:56
void get_ranges(PlotAxis axis, double &min, double &max) const
Get coordinate ranges for axis.
Base for plottable graphs.
void set_geometry(int width, int height, int offx, int offy)
Set size of plot.
Definition: frame.hpp:185
1D and 2D coordinate transformations for plotter.
void set_ranges(PlotAxis axis, double min, double max)
Set coordinate ranges for axis.
void clear_graphs(void)
Clear all graphs from frame.
PlotFixedMode
Fixed aspect ratio setting for frame.
Definition: frame.hpp:67
Class for labels in plots.
Definition: label.hpp:57
double get_font_size(void)
Get font size used for tics and labels.
Definition: frame.hpp:198
void set_axis_label(PlotAxis axis, const std::string &label)
Set axis label.
Frame()
Default constructor.
Class for coordinate axis ruler.
Definition: ruler.hpp:62
Linear-linear 2D coordinate mapper.
Definition: coordmapper.hpp:119
void add_graph(PlotAxis xaxis, PlotAxis yaxis, Graph *graph, LegendEntry *legend=NULL)
Add graph to frame.
Coordmapper get_coordmapper(PlotAxis xaxis, PlotAxis yaxis) const
Get a 2d coordinate mapper for selected axes.
void set_title(const std::string &title)
Set title for plot.
Class for legend entry.
Definition: legend.hpp:93
void get_frame_edges(double edge[4]) const
Get frame edge locations.
void set_fixed_aspect(PlotFixedMode mode)
Set fixed aspect ratio mode.
void force_enable_ruler(PlotAxis axis, bool force)
Force enable ruler for axis.
void set_foreground(Color &fg)
Set foreground color.
Definition: frame.hpp:210
legend_position_e
Legend position.
Definition: legend.hpp:58
void set_legend_position(legend_position_e pos)
Set legend position.
General purpose plotter frame for cairographics surfaces.
Definition: frame.hpp:107
Color class for plotting.
Definition: color.hpp:53
~Frame()
Destructor.
Definition: frame.hpp:176
void ruler_autorange_enable(PlotAxis axis, bool min, bool max)
Enable/disable ruler autorange.
void enable_legend(bool enable)
Set legend enable/disable.
void set_font_size(double size)
Set font size used for tics and labels.
Legend for presenting plot styles.
Definition: legend.hpp:175