|
| | wxPlot (wxFrame *parent, const WXPLOT_FIGURE wxPlotFigure=WXPLOT_FIGURE_2D, const WXPLOT_TYPE wxPlotType=WXPLOT_TYPE_LINE) |
| | Constructor of wxPlot.
|
| |
| void | setFontSize (const unsigned int fontSize) |
| | Set the size of the fonts.
|
| |
| void | setTitle (const wxString title) |
| | Set the title of the plot.
|
| |
| void | setXlabel (const wxString xLabel) |
| | Set the name of the X-label.
|
| |
| void | setYlabel (const wxString yLabel) |
| | Set the name of the Y-label.
|
| |
| void | setTicks (const unsigned int ticks) |
| | Set the number of ticks at the figure in all axis.
|
| |
| void | gridOn (const bool useGrid) |
| | Enable grid on the figure.
|
| |
| void | setPlotStartWidth (const wxCoord plotStartWidth) |
| | Set the left upper corner in X-axis. Inside this rectangle, the plot is drawn. NOTE: This value is recalculated since the plot figure is drawn! (plotStartWidth, plotStartHeight) --------------------------------------------— (plotEndWidth, plotStartHeight)
|
| |
| void | setPlotStartHeight (const wxCoord plotStartHeight) |
| | Set the left upper corner in Y-axis. Inside this rectangle, the plot is drawn. NOTE: This value is recalculated since the plot figure is drawn! (plotStartWidth, plotStartHeight) --------------------------------------------— (plotEndWidth, plotStartHeight)
|
| |
| void | setPlotEndWidth (const wxCoord plotEndWidth) |
| | Set the right upper corner in X-axis. Inside this rectangle, the plot is drawn. NOTE: This value is recalculated since the plot figure is drawn! (plotStartWidth, plotStartHeight) --------------------------------------------— (plotEndWidth, plotStartHeight)
|
| |
| void | setPlotEndHeight (const wxCoord plotEndHeight) |
| | Set the right bottom corner in Y-axis. Inside this rectangle, the plot is drawn. NOTE: This value is recalculated since the plot figure is drawn! (plotStartWidth, plotStartHeight) --------------------------------------------— (plotEndWidth, plotStartHeight)
|
| |
| void | setData (const std::vector< std::vector< double > > &data2D) |
| | Set 2D data.
|
| |
| void | setData (const std::vector< double > &data1D) |
| | Set 1D data.
|
| |
| void | setRadius (const wxCoord radius) |
| | Set radius. Most used for circles e.g filling scatter plots.
|
| |
| void | legendOn (const bool useLegend) |
| | Activate the legend.
|
| |
| void | setLegend (const std::vector< wxString > &legend, const PLACEMENT legendPosition=PLACEMENT_NORTH_EAST) |
| | Set the labels and placement for the legend.
|
| |
| void | fillCircles (const bool fillCircle) |
| | Fill circles if radius is applied if circiles are going to be filled with the same colour as they are drawn.
|
| |
| void | setBinCount (const unsigned int binCount) |
| | Set the bin count for e.g. histogram.
|
| |
| void | setYlim (const double minY, const double maxY) |
| | Set the plot zoom limit in Y-axis.
|
| |
| void | drawPlot (wxPaintEvent &event) |
| | Important event function for draw the whole plot. Add things here, that you want to appear inside the plot for every iteration.
|
| |
Main class for wxPlot. This is the only class the user going to work with.
| void wxPlot::setPlotEndHeight |
( |
const wxCoord | plotEndHeight | ) |
|
Set the right bottom corner in Y-axis. Inside this rectangle, the plot is drawn. NOTE: This value is recalculated since the plot figure is drawn! (plotStartWidth, plotStartHeight) --------------------------------------------— (plotEndWidth, plotStartHeight)
(plotStartWidth, plotEndHeight) --------------------------------------------— (plotEndWidth, plotEndHeight)
- Parameters
-
| plotEndHeight | End height is at the end of Y-axis. |
| void wxPlot::setPlotEndWidth |
( |
const wxCoord | plotEndWidth | ) |
|
Set the right upper corner in X-axis. Inside this rectangle, the plot is drawn. NOTE: This value is recalculated since the plot figure is drawn! (plotStartWidth, plotStartHeight) --------------------------------------------— (plotEndWidth, plotStartHeight)
(plotStartWidth, plotEndHeight) --------------------------------------------— (plotEndWidth, plotEndHeight)
- Parameters
-
| plotEndWidth | End width is at the end of X-axis. |
| void wxPlot::setPlotStartHeight |
( |
const wxCoord | plotStartHeight | ) |
|
Set the left upper corner in Y-axis. Inside this rectangle, the plot is drawn. NOTE: This value is recalculated since the plot figure is drawn! (plotStartWidth, plotStartHeight) --------------------------------------------— (plotEndWidth, plotStartHeight)
(plotStartWidth, plotEndHeight) --------------------------------------------— (plotEndWidth, plotEndHeight)
- Parameters
-
| plotStartHeight | Start height is at the start of Y-axis. |
| void wxPlot::setPlotStartWidth |
( |
const wxCoord | plotStartWidth | ) |
|
Set the left upper corner in X-axis. Inside this rectangle, the plot is drawn. NOTE: This value is recalculated since the plot figure is drawn! (plotStartWidth, plotStartHeight) --------------------------------------------— (plotEndWidth, plotStartHeight)
(plotStartWidth, plotEndHeight) --------------------------------------------— (plotEndWidth, plotEndHeight)
- Parameters
-
| plotStartWidth | Start width is at the start of X-axis. |