#include <Plot.hpp>
Inheritance diagram for Plot:


Public Member Functions | |
| Plot () | |
| Constructor. | |
| ~Plot () | |
| Destructor. | |
| void | setXAxis (double min, double max, double gap=0) |
| Set the minimum and maximum for x axis (doesn't effect columns). | |
| void | setYAxis (double min, double max, double gap=0) |
| Set the minimum and maximum for y axis (doesn't effect rows). | |
| void | setXLabel (const char *str) |
| Set the label for the x axis. | |
| void | setXLabel (const std::string &str) |
| Set the label for the x axis. | |
| void | setYLabel (const char *str) |
| Set the label for the y axis. | |
| void | setYLabel (const std::string &str) |
| Set the label for the y axis. | |
| Frame | getPlotArea (Frame &frame) |
| Get the Frame around which the axes will be drawn. | |
| Frame | getPlotArea (Frame *frame) |
| Get the Frame around which the axes will be drawn. | |
| void | drawAxis (Frame &frame) |
| Draw the axis in this Frame. | |
| void | drawAxis (Frame *frame) |
| Draw the axis in this Frame. | |
Public Attributes | |
| TextStyle | label_style |
| TextStyle for the labels. | |
| AxisStyle | axis_top |
| Style for the north axis. | |
| AxisStyle | axis_bottom |
| Style for the south axis. | |
| AxisStyle | axis_left |
| Style for the left axis. | |
| AxisStyle | axis_right |
| Style for the right axis. | |
Protected Member Functions | |
| void | drawLegend (Frame *frame, SeriesList *sl, unsigned int columns=1) |
| Draw the legend in this Frame to some degree. | |
Protected Attributes | |
| std::string | xlabel |
| X axis label. | |
| bool | fixedYaxis |
| User has set the Y axis. | |
| bool | fixedXaxis |
| User has set the X axis. | |
| std::string | ylabel |
| Y axis label. | |
| double | minx |
| Minimum x of the plot. | |
| double | width |
| Width of the plot. | |
| double | xgap |
| Gap from minimum x. | |
| double | miny |
| Minimum y of the plot. | |
| double | height |
| Height of the plot. | |
| double | ygap |
| Gap from minimum y. | |
|
|
Constructor.
|
|
|
Destructor.
|
|
|
Draw the axis in this Frame.
|
|
|
Draw the axis in this Frame.
Definition at line 90 of file Plot.hpp. Referenced by ScatterPlot::drawPlot(). |
|
||||||||||||||||
|
Draw the legend in this Frame to some degree. Since it is difficult to determine the width of a specific string, for now this merely makes a single column of legend. This should be good for most generic plots. Definition at line 155 of file Plot.hpp. Referenced by ScatterPlot::drawKey(), and LinePlot::drawKey(). |
|
|
Get the Frame around which the axes will be drawn.
|
|
|
Get the Frame around which the axes will be drawn.
Definition at line 81 of file Plot.hpp. Referenced by ScatterPlot::drawPlot(). |
|
||||||||||||||||
|
Set the minimum and maximum for x axis (doesn't effect columns).
Definition at line 66 of file Plot.hpp. Referenced by ScatterPlot::drawPlot(). |
|
|
Set the label for the x axis.
|
|
|
Set the label for the x axis.
|
|
||||||||||||||||
|
Set the minimum and maximum for y axis (doesn't effect rows).
Definition at line 69 of file Plot.hpp. Referenced by ScatterPlot::drawPlot(). |
|
|
Set the label for the y axis.
|
|
|
Set the label for the y axis.
|
|
|
Style for the south axis.
|
|
|
Style for the left axis.
|
|
|
Style for the right axis.
|
|
|
Style for the north axis.
|
|
|
User has set the X axis.
|
|
|
User has set the Y axis.
|
|
|
Height of the plot.
|
|
|
TextStyle for the labels.
|
|
|
Minimum x of the plot.
|
|
|
Minimum y of the plot.
|
|
|
Width of the plot.
|
|
|
Gap from minimum x.
|
|
|
X axis label.
|
|
|
Gap from minimum y.
|
|
|
Y axis label.
|
1.3.9.1