Plot
Public Types
enum PlotType
Public Methods
|
activatePlot(QPointF mouseScenePos, double maxDist=-1) |
|
color() const =0 |
|
dataCount(Dimension) const =0 |
|
hasData() const =0 |
|
indicesMinMax(const Dimension, double v1, double v2, int &start, int &end) const =0 |
|
maximum(Dimension) const =0 |
|
minMax(Dimension, const Range< int > &indexRange, Range< double > &rOut, bool includeErrorBars=true) const =0 |
|
minimum(Dimension) const =0 |
|
usingColumn(const AbstractColumn *, bool indirect=true) const =0 |
Detailed Description
-
class Plot : public WorksheetElement
Subclassed by BarPlot, BoxPlot, Histogram, KDEPlot, LollipopPlot, ParetoChart, ProcessBehaviorChart, QQPlot, RunChart, XYCurve
Public Functions
-
virtual bool hasData() const = 0
returns
trueif a valid data column is set, returnsfalseotherwise. Used in CartesianPlot to determine whether the curve needs to be taken into account when calculating the data ranges of the plot area.
-
bool activatePlot(QPointF mouseScenePos, double maxDist = -1)
Plot::activatePlot Checks if the mousepos distance to the plot is less than
maxDistmouseScenePosmaxDistMaximum distance the point lies away from the plot.- Returns:
Returns true if the distance is smaller than maxDist.
-
virtual bool hasData() const = 0