mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2911 Ensemble curves. Fix disappearing right axis
This commit is contained in:
parent
2e0cd60fc4
commit
ea50722cdd
@ -823,23 +823,27 @@ void RimEnsembleCurveSet::updateAllCurves()
|
||||
RimSummaryAddress* addr = m_yValuesCurveVariable();
|
||||
if (group && plot && addr->address().category() != RifEclipseSummaryAddress::SUMMARY_INVALID)
|
||||
{
|
||||
for (auto& sumCase : group->allSummaryCases())
|
||||
if(m_showCurves)
|
||||
{
|
||||
RimSummaryCurve* curve = new RimSummaryCurve();
|
||||
curve->setSummaryCaseY(sumCase);
|
||||
curve->setSummaryAddressY(addr->address());
|
||||
|
||||
addCurve(curve);
|
||||
|
||||
curve->updateCurveVisibility(true);
|
||||
curve->loadDataAndUpdate(true);
|
||||
|
||||
if (curve->qwtPlotCurve())
|
||||
for (auto& sumCase : group->allSummaryCases())
|
||||
{
|
||||
curve->qwtPlotCurve()->setItemAttribute(QwtPlotItem::Legend, false);
|
||||
RimSummaryCurve* curve = new RimSummaryCurve();
|
||||
curve->setSummaryCaseY(sumCase);
|
||||
curve->setSummaryAddressY(addr->address());
|
||||
curve->setLeftOrRightAxisY(m_plotAxis());
|
||||
|
||||
addCurve(curve);
|
||||
|
||||
curve->updateCurveVisibility(true);
|
||||
curve->loadDataAndUpdate(true);
|
||||
|
||||
if (curve->qwtPlotCurve())
|
||||
{
|
||||
curve->qwtPlotCurve()->setItemAttribute(QwtPlotItem::Legend, false);
|
||||
}
|
||||
}
|
||||
m_yValuesSummaryFilter->updateFromAddress(addr->address());
|
||||
}
|
||||
m_yValuesSummaryFilter->updateFromAddress(addr->address());
|
||||
|
||||
RimSummaryPlot* plot;
|
||||
firstAncestorOrThisOfType(plot);
|
||||
|
Loading…
Reference in New Issue
Block a user