mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8787 Summary Multiplot: Fix inversion of axis with axis aggregation.
This commit is contained in:
committed by
Magne Sjaastad
parent
01e670a3d8
commit
1aa41968a5
@@ -911,9 +911,10 @@ void RimSummaryPlot::updateZoomForAxis( RiuPlotAxis plotAxis )
|
||||
}
|
||||
else
|
||||
{
|
||||
plotWidget()->setAxisScale( yAxisProps->plotAxisType(),
|
||||
yAxisProps->visibleRangeMin(),
|
||||
yAxisProps->visibleRangeMax() );
|
||||
double min = yAxisProps->visibleRangeMin();
|
||||
double max = yAxisProps->visibleRangeMax();
|
||||
if ( yAxisProps->isAxisInverted() ) std::swap( min, max );
|
||||
plotWidget()->setAxisScale( yAxisProps->plotAxisType(), min, max );
|
||||
}
|
||||
|
||||
plotWidget()->setAxisInverted( yAxisProps->plotAxisType(), yAxisProps->isAxisInverted() );
|
||||
@@ -1662,6 +1663,8 @@ void RimSummaryPlot::updateZoomFromParentPlot()
|
||||
for ( RimPlotAxisPropertiesInterface* axisProperties : m_axisProperties )
|
||||
{
|
||||
auto [axisMin, axisMax] = plotWidget()->axisRange( axisProperties->plotAxisType() );
|
||||
if ( axisProperties->isAxisInverted() ) std::swap( axisMin, axisMax );
|
||||
|
||||
axisProperties->setVisibleRangeMax( axisMax );
|
||||
axisProperties->setVisibleRangeMin( axisMin );
|
||||
axisProperties->updateConnectedEditors();
|
||||
|
||||
Reference in New Issue
Block a user