#14539 Summary Plot: Preserve user defined axis ranges when the data source changes - #14605
Draft
magnesj wants to merge 1 commit into
Draft
#14539 Summary Plot: Preserve user defined axis ranges when the data source changes#14605magnesj wants to merge 1 commit into
magnesj wants to merge 1 commit into
Conversation
…source changes An axis range defined by the user is now kept when a summary case or ensemble is added, reloaded or replaced. The range is marked as user defined when the user edits the min/max values, unchecks "Set Range Automatically" or zooms interactively in the plot. The user defined range is released by "Zoom All", by double click in a plot, by checking "Set Range Automatically" or by changing the Y axis range aggregation of a summary multi plot.
magnesj
force-pushed
the
14539-preserve-user-defined-axis-ranges
branch
from
August 27, 2026 13:06
365d1c6 to
33bd807
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #14539
A user defined axis range is now treated as a persistent setting on the axis, and is kept when the data source of a summary plot changes. This covers adding a summary case to an ensemble, reloading a summary case, and replacing a summary case or an ensemble, and also the existing stepping between wells, groups, regions and realizations.
How an axis range becomes user defined
RimPlotAxisPropertiesInterfacehas a new persisted fieldIsRangeUserDefined. It is set when the user edits Min/Max in the axis property panel, unchecks "Set Range Automatically", or zooms/pans interactively in the plot. For the numerical axis the flag is derived from the auto value state of the Min/Max field, so toggling the field back to auto value clears the flag instead of setting it.How the range is preserved
RimSummaryPlot::setAutoScaleXEnabled/YEnabled( true )skips axes with a user defined range. This is the single choke point for allzoomAll()paths, so all the automatic zoom operations triggered fromRimSummaryEnsemble::addCase,RiaSummaryTools::reloadSummaryCaseAndUpdateConnectedPlotsandRiaSummaryTools::updateConnectedPlotsleave the range untouched. In addition,RimPlotAxisProperties::enableAutoValueMinMaxno longer re-enables the auto value for a user defined axis, so the Y axis range aggregation modes of a summary multi plot cannot overwrite the range either.How the range is released
RimViewWindow::zoomAllAndReleaseUserDefinedRanges()is a new virtual that defaults tozoomAll()and is overridden byRimSummaryPlotandRimSummaryMultiPlotto clear the flags first. It is used by the Zoom All command (Ctrl+Alt+A, toolbar and context menu) and by double click in a plot. The range is also released by checking "Set Range Automatically" for the axis, or by changing the Y Axis Range aggregation of a summary multi plot.Not included
The issue suggests a lock icon in the user interface for the two axes. This PR implements the behaviour without the icon, using the existing "Set Range Automatically" toggle as the visible per axis control. Say the word if the lock icon should be added on top of this.