Histogram

A description for Histogram.

class Histogram : public Plot

This class implements the histogram - a visualization of the distribution of numerical data.

Ordinary, cumulative and average shifted histograms are supported as well as different normalization and binning methods.

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 void recalc() override

recalculates the internal structures (additional data containers, drawing primitives, etc.) on data changes in the source data columns. these structures are used in the plot during the actual drawing of the plot on geometry changes.

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.

virtual bool usingColumn(const AbstractColumn*, bool indirect) const override

returns true if the column is used internally in the plot for the visualisation, returns false otherwise. If indirect is true it returns true also if a depending curve uses that column

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.