From dbf0747036b7055df113fb255f4284495cd50bba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Jensen?= Date: Wed, 19 Sep 2018 14:08:16 +0200 Subject: [PATCH] #3374 Ensemble curves. Fix several right axis issues --- .../ProjectDataModel/Summary/RimEnsembleCurveSet.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/ProjectDataModel/Summary/RimEnsembleCurveSet.cpp b/ApplicationCode/ProjectDataModel/Summary/RimEnsembleCurveSet.cpp index f2e21ecd76..b920669b87 100644 --- a/ApplicationCode/ProjectDataModel/Summary/RimEnsembleCurveSet.cpp +++ b/ApplicationCode/ProjectDataModel/Summary/RimEnsembleCurveSet.cpp @@ -965,6 +965,7 @@ void RimEnsembleCurveSet::updateEnsembleCurves(const std::vectorupdateCurveVisibility(false); curve->loadDataAndUpdate(false); + curve->updateQwtPlotAxis(); if (curve->qwtPlotCurve()) { @@ -1052,16 +1053,17 @@ void RimEnsembleCurveSet::updateStatisticsCurves(const std::vectorsetLineStyle(RiuQwtPlotCurve::STYLE_SOLID); curve->setSummaryCaseY(m_ensembleStatCase.get()); curve->setSummaryAddressY(address); + curve->setLeftOrRightAxisY(m_plotAxis()); curve->setZOrder(1000); curve->updateCurveVisibility(false); curve->loadDataAndUpdate(false); + curve->updateQwtPlotAxis(); } if (plot->qwtPlot()) { plot->qwtPlot()->updateLegend(); - plot->qwtPlot()->replot(); plot->updateAxes(); } }