Histogram
This class implements the histogram - a visualization of the distribution of numerical data.
Public Types
enum BinningMethodenum LineTypeenum Normalizationenum Type
Public Methods
|
Histogram(const QString &name, bool loading=false) |
|
background() const |
|
binPDValues() const |
|
binValues() const |
|
bins() const |
|
color() const override |
|
createContextMenu() override |
|
dataCount(Dimension) const override |
|
errorBar() const |
|
handleResize(double horizontalRatio, double verticalRatio, bool pageResize) override |
|
hasData() const override |
|
icon() const override |
|
indicesMinMax(const Dimension dim, double, double, int &start, int &end) const override |
|
line() const |
|
load(XmlStreamReader *, bool preview) override |
|
loadThemeConfig(const KConfig &) override |
|
maximum(CartesianCoordinateSystem::Dimension) const override |
|
minMax(const Dimension dim, const Range< int > &indexRange, Range< double > &r, bool includeErrorBars=true) const override |
|
minimum(CartesianCoordinateSystem::Dimension) const override |
|
recalc() override |
|
retransform() override |
|
save(QXmlStreamWriter *) const override |
|
saveThemeConfig(const KConfig &) override |
|
symbol() const |
|
updateLocale() override |
|
usingColumn(const AbstractColumn *, bool indirect) const override |
|
value() const |
Detailed Description
-
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 bool hasData() const override
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.
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.
-
virtual QIcon icon() const override