diff --git a/ApplicationLibCode/ProjectDataModel/RimEnsembleFractureStatisticsPlot.cpp b/ApplicationLibCode/ProjectDataModel/RimEnsembleFractureStatisticsPlot.cpp index 470ffd35b7..18adffee19 100644 --- a/ApplicationLibCode/ProjectDataModel/RimEnsembleFractureStatisticsPlot.cpp +++ b/ApplicationLibCode/ProjectDataModel/RimEnsembleFractureStatisticsPlot.cpp @@ -96,7 +96,8 @@ void RimEnsembleFractureStatisticsPlot::defineUiOrdering( QString uiConfigName, uiOrdering.add( &m_ensembleFractureStatistics ); uiOrdering.add( &m_property ); - RimStatisticsPlot::uiOrderingForHistogram( uiConfigName, uiOrdering ); + bool showNumHistogramBins = true; + RimStatisticsPlot::uiOrderingForHistogram( uiConfigName, uiOrdering, showNumHistogramBins ); caf::PdmUiGroup* plotLayoutGroup = uiOrdering.addNewGroup( "Plot Layout" ); RimStatisticsPlot::uiOrderingForPlotLayout( uiConfigName, *plotLayoutGroup ); diff --git a/ApplicationLibCode/ProjectDataModel/RimGridStatisticsPlot.cpp b/ApplicationLibCode/ProjectDataModel/RimGridStatisticsPlot.cpp index 0711917875..b82da51c5a 100644 --- a/ApplicationLibCode/ProjectDataModel/RimGridStatisticsPlot.cpp +++ b/ApplicationLibCode/ProjectDataModel/RimGridStatisticsPlot.cpp @@ -140,6 +140,9 @@ void RimGridStatisticsPlot::defineUiOrdering( QString uiConfigName, caf::PdmUiOr m_property->uiOrdering( uiConfigName, *propertyGroup ); } + bool showNumHistogramBins = false; + RimStatisticsPlot::uiOrderingForHistogram( uiConfigName, uiOrdering, showNumHistogramBins ); + caf::PdmUiGroup* plotLayoutGroup = uiOrdering.addNewGroup( "Plot Layout" ); RimStatisticsPlot::uiOrderingForPlotLayout( uiConfigName, *plotLayoutGroup ); diff --git a/ApplicationLibCode/ProjectDataModel/RimStatisticsPlot.cpp b/ApplicationLibCode/ProjectDataModel/RimStatisticsPlot.cpp index f4b78da00d..dec64f6ce4 100644 --- a/ApplicationLibCode/ProjectDataModel/RimStatisticsPlot.cpp +++ b/ApplicationLibCode/ProjectDataModel/RimStatisticsPlot.cpp @@ -225,10 +225,10 @@ void RimStatisticsPlot::defineEditorAttribute( const caf::PdmFieldHandle* field, //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- -void RimStatisticsPlot::uiOrderingForHistogram( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) +void RimStatisticsPlot::uiOrderingForHistogram( QString uiConfigName, caf::PdmUiOrdering& uiOrdering, bool showHistogramBins ) { caf::PdmUiGroup* histogramGroup = uiOrdering.addNewGroup( "Histogram" ); - histogramGroup->add( &m_numHistogramBins ); + if ( showHistogramBins ) histogramGroup->add( &m_numHistogramBins ); histogramGroup->add( &m_histogramBarColor ); histogramGroup->add( &m_histogramBarWidth ); histogramGroup->add( &m_histogramFrequencyType ); diff --git a/ApplicationLibCode/ProjectDataModel/RimStatisticsPlot.h b/ApplicationLibCode/ProjectDataModel/RimStatisticsPlot.h index 5c6acd229c..3316314bd0 100644 --- a/ApplicationLibCode/ProjectDataModel/RimStatisticsPlot.h +++ b/ApplicationLibCode/ProjectDataModel/RimStatisticsPlot.h @@ -67,7 +67,7 @@ protected: QString uiConfigName, caf::PdmUiEditorAttribute* attribute ) override; - void uiOrderingForHistogram( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ); + void uiOrderingForHistogram( QString uiConfigName, caf::PdmUiOrdering& uiOrdering, bool showHistogramBins ); void onLoadDataAndUpdate() override; void updatePlots();