#8994 Plot axis range : Fix incorrect reset of user-defined min max value

This commit is contained in:
Kristian Bendiksen 2022-06-01 12:53:15 +02:00 committed by Magne Sjaastad
parent cf9f69b620
commit cbe731d187

View File

@ -700,6 +700,9 @@ void RimSummaryMultiPlot::onLoadDataAndUpdate()
//--------------------------------------------------------------------------------------------------
void RimSummaryMultiPlot::zoomAll()
{
// Reset zoom to make sure the complete range for min/max is available
RimMultiPlot::zoomAll();
syncAxisRanges();
}
@ -782,14 +785,15 @@ void RimSummaryMultiPlot::checkAndApplyAutoAppearance()
//--------------------------------------------------------------------------------------------------
void RimSummaryMultiPlot::syncAxisRanges()
{
// Reset zoom to make sure the complete range for min/max is available
RimMultiPlot::zoomAll();
if ( m_axisRangeAggregation() == AxisRangeAggregation::INDIVIDUAL )
{
return;
}
else if ( m_axisRangeAggregation() == AxisRangeAggregation::SUB_PLOTS )
// Reset zoom to make sure the complete range for min/max is available
RimMultiPlot::zoomAll();
if ( m_axisRangeAggregation() == AxisRangeAggregation::SUB_PLOTS )
{
std::map<RiuPlotAxis, std::pair<double, double>> axisRanges;