mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 06:38: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:
1 parent
e5c3e54227
commit
a4e031b734
1 file changed
+4
@@ -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