mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2722 Show axis for ensamble curves as well
This commit is contained in:
@@ -444,6 +444,14 @@ void RimEnsambleCurveSet::fieldChangedByUi(const caf::PdmFieldHandle* changedFie
|
||||
curve->updateCurveVisibility(true);
|
||||
curve->loadDataAndUpdate(true);
|
||||
}
|
||||
|
||||
RimSummaryPlot* plot;
|
||||
firstAncestorOrThisOfType(plot);
|
||||
if (plot && plot->qwtPlot())
|
||||
{
|
||||
plot->qwtPlot()->replot();
|
||||
plot->updateAxes();
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (changedField == &m_ensambleParameter)
|
||||
|
||||
@@ -671,6 +671,20 @@ std::vector<RimSummaryCurve*> RimSummaryPlot::visibleSummaryCurvesForAxis(RiaDef
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (m_ensambleCurveSetCollection && m_ensambleCurveSetCollection->isCurveSetsVisible())
|
||||
{
|
||||
for (RimEnsambleCurveSet* curveSet : m_ensambleCurveSetCollection->curveSets())
|
||||
{
|
||||
for (RimSummaryCurve* curve : curveSet->curves())
|
||||
{
|
||||
if (curve->isCurveVisible() && curve->axisY() == plotAxis)
|
||||
{
|
||||
curves.push_back(curve);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return curves;
|
||||
|
||||
Reference in New Issue
Block a user