Here all the plot types e.g 2D, 3D, custom etc. are included.
More...
#include <plottypes.hpp>
|
| void | setWxPlotFigureType (const WXPLOT_FIGURE wxPlotFigure, const WXPLOT_TYPE wxPlotType) |
| | Set the plot type selection and plot figure selection.
|
| |
| void | setRadius (const wxCoord radius) |
| | Set radius. Most used for circles e.g filling scatter plots.
|
| |
| 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 | setData (const std::vector< std::vector< double > > &data2D) |
| | Set 2D data.
|
| |
| void | setData (const std::vector< double > &data1D) |
| | Set 1D data.
|
| |
| 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 | 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 | drawType (wxDC &dc) |
| | This function draw the plot e.g line, bar, histogram, spline, scatter etc. inside in this rectangle.
|
| |
Here all the plot types e.g 2D, 3D, custom etc. are included.
◆ drawType()
| void PlotTypes::drawType |
( |
wxDC & | dc | ) |
|
This function draw the plot e.g line, bar, histogram, spline, scatter etc. inside in this rectangle.
- Parameters
-
| dc | The wxDC object for drawing lines, polygons etc. |
◆ fillCircles()
| void PlotTypes::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.
- Parameters
-
| fillCircle | Set true if filled. |
◆ setBinCount()
| void PlotTypes::setBinCount |
( |
const unsigned int | binCount | ) |
|
Set the bin count for e.g. histogram.
- Parameters
-
| binCount | Bin count is total columns inside a e.g historam chart. |
◆ setData() [1/2]
| void PlotTypes::setData |
( |
const std::vector< double > & | data1D | ) |
|
Set 1D data.
- Parameters
-
| data1D | 1D data in form of 1D vector. |
◆ setData() [2/2]
| void PlotTypes::setData |
( |
const std::vector< std::vector< double > > & | data2D | ) |
|
Set 2D data.
- Parameters
-
| data2D | 2D data in form of 2D vector. |
◆ setPlotEndHeight()
| void PlotTypes::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. |
◆ setPlotEndWidth()
| void PlotTypes::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. |
◆ setPlotStartHeight()
| void PlotTypes::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. |
◆ setPlotStartWidth()
| void PlotTypes::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. |
◆ setRadius()
| void PlotTypes::setRadius |
( |
const wxCoord | radius | ) |
|
Set radius. Most used for circles e.g filling scatter plots.
- Parameters
-
| radius | The radius of the circle. |
◆ setWxPlotFigureType()
| void PlotTypes::setWxPlotFigureType |
( |
const WXPLOT_FIGURE | wxPlotFigure, |
|
|
const WXPLOT_TYPE | wxPlotType ) |
Set the plot type selection and plot figure selection.
- Parameters
-
| wxPlotFigure | Selection of plot figure. |
| wxPlotType | Selection of plot type. |
◆ setYlim()
| void PlotTypes::setYlim |
( |
const double | minY, |
|
|
const double | maxY ) |
Set the plot zoom limit in Y-axis.
- Parameters
-
| minY | Minimum limit in Y-axis. |
| maxY | Maximum limit in Y-axis. |
The documentation for this class was generated from the following files:
- C:/Users/danie/Documents/GitHub/wxPlot/wxPlot/src/plots/plottypes/plottypes.hpp
- C:/Users/danie/Documents/GitHub/wxPlot/wxPlot/src/plots/plottypes/plottypes.cpp