Grid statistics: Zoom all on histogram plot after creation

When creating a histogram from grid cell results (e.g. PERMX) via
"Create Grid Statistics Plot", zoom the histogram plot to fit the data
right after the curve is populated, instead of leaving it at default axis
ranges.
This commit is contained in:
Magne Sjaastad
2026-08-31 10:28:10 +02:00
parent e5c3e54227
commit a4e031b734
@@ -43,6 +43,10 @@ void RicCreateGridStatisticsPlotFeature::onActionTriggered( bool isChecked )
RimEclipseView* activeView = dynamic_cast<RimEclipseView*>( RiaApplication::instance()->activeGridView() );
if ( activeView ) dataSource->setPropertiesFromView( activeView );
histogramPlot->loadDataAndUpdate();
histogramPlot->zoomAll();
RiaGuiApplication::instance()->getOrCreateAndShowMainPlotWindow();
}