Axis sync: Reset zoom to make sure the complete range for min/max is available

This commit is contained in:
Magne Sjaastad 2022-03-11 08:41:53 +01:00
parent c9b762fb16
commit 721ba508de

View File

@ -464,6 +464,9 @@ void RimSummaryMultiPlot::syncAxisRanges()
{
std::map<QString, std::pair<double, double>> axisRanges;
// Reset zoom to make sure the complete range for min/max is available
zoomAll();
// gather current min/max values for each category (axis label)
for ( auto plot : summaryPlots() )
{