BoxPlot

This class implements the box plot that is used to visualize the spread of numerical data with the help of their quartiles.

Public Types

  • enum Ordering

  • enum WhiskersType

Public Methods

void

BoxPlot(const QString &, bool loading=false)

Background*

backgroundAt(int) const

Line*

borderLineAt(int) const

QColor

color() const override

QColor

colorAt(int) const

QMenu*

createContextMenu() override

int

dataCount(Dimension) const override

void

handleResize(double horizontalRatio, double verticalRatio, bool pageResize) override

bool

hasData() const override

QIcon

icon() const override

bool

indicesMinMax(const Dimension dim, double, double, int &start, int &end) const override

bool

load(XmlStreamReader *, bool preview) override

void

loadThemeConfig(const KConfig &) override

double

maximum(CartesianCoordinateSystem::Dimension) const override

Line*

medianLineAt(int) const

bool

minMax(const Dimension dim, const Range< int > &indexRange, Range< double > &r, bool includeErrorBars=true) const override

double

minimum(CartesianCoordinateSystem::Dimension) const override

void

recalc() override

void

retransform() override

void

save(QXmlStreamWriter *) const override

QIcon

staticIcon()

Symbol*

symbolData() const

Symbol*

symbolFarOut() const

Symbol*

symbolMean() const

Symbol*

symbolMedian() const

Symbol*

symbolOutlier() const

Symbol*

symbolWhiskerEnd() const

bool

usingColumn(const AbstractColumn *, bool indirect) const override

Line*

whiskersCapLine() const

Line*

whiskersLine() const

Detailed Description

class BoxPlot : public Plot

This class implements the box plot that is used to visualize the spread of numerical data with the help of their quartiles.

The implementation supports the visualization of multiple data sets (column) at the same time with different ways to order them and to modify their properties separately. Notches, jittering of the data as well as the rug plot are possible to get more insights into the structure of the visualized data.

Public Functions

virtual QIcon icon() const override

Returns an icon to be used in the project explorer.

virtual QMenu *createContextMenu() override

Return a new context menu.

The caller takes ownership of the menu.

virtual void save(QXmlStreamWriter*) const override

Save as XML.

virtual bool load(XmlStreamReader*, bool preview) override

Load from XML.

virtual bool hasData() const override

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.

Public Slots

void createDataSpreadsheet()

creates a new spreadsheet having the data with the positions and the values of the bins. the new spreadsheet is added to the current folder.