mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user