Plot

Public Types

  • enum PlotType

Public Methods

bool

activatePlot(QPointF mouseScenePos, double maxDist=-1)

QColor

color() const =0

int

dataCount(Dimension) const =0

bool

hasData() const =0

bool

indicesMinMax(const Dimension, double v1, double v2, int &start, int &end) const =0

double

maximum(Dimension) const =0

bool

minMax(Dimension, const Range< int > &indexRange, Range< double > &rOut, bool includeErrorBars=true) const =0

double

minimum(Dimension) const =0

bool

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 true if a valid data column is set, returns false otherwise. 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 maxDist mouseScenePos maxDist Maximum distance the point lies away from the plot.

Returns:

Returns true if the distance is smaller than maxDist.