#7664 Statistics Plot: add option for relative frequency in histogram

This commit is contained in:
Kristian Bendiksen
2021-05-12 14:43:25 +02:00
parent b00734265a
commit 8d1bc7bfd9
2 changed files with 31 additions and 4 deletions

View File

@@ -42,6 +42,12 @@ class RimStatisticsPlot : public RimPlotWindow
CAF_PDM_HEADER_INIT;
public:
enum class HistogramFrequencyType
{
ABSOLUTE,
RELATIVE
};
RimStatisticsPlot();
~RimStatisticsPlot() override;
@@ -82,8 +88,9 @@ private:
protected:
QPointer<RiuQtChartView> m_viewer;
caf::PdmField<QString> m_plotWindowTitle;
caf::PdmField<int> m_numHistogramBins;
caf::PdmField<cvf::Color3f> m_histogramBarColor;
caf::PdmField<double> m_histogramBarWidth;
caf::PdmField<QString> m_plotWindowTitle;
caf::PdmField<int> m_numHistogramBins;
caf::PdmField<cvf::Color3f> m_histogramBarColor;
caf::PdmField<double> m_histogramBarWidth;
caf::PdmField<caf::AppEnum<HistogramFrequencyType>> m_histogramFrequencyType;
};