#2760 Ensemble Curves: Show one curve legend

This commit is contained in:
Magne Sjaastad
2018-04-30 08:01:12 +02:00
parent 1a0f242c0b
commit 0da7686cdb
7 changed files with 52 additions and 28 deletions

View File

@@ -111,17 +111,18 @@ void RimEnsembleCurveSetCollection::loadDataAndUpdate(bool updateParentPlot)
// curve->updateQwtPlotAxis();
//}
//if ( updateParentPlot )
//{
// RimSummaryPlot* parentPlot;
// firstAncestorOrThisOfTypeAsserted(parentPlot);
// if ( parentPlot->qwtPlot() )
// {
// parentPlot->qwtPlot()->updateLegend();
// parentPlot->updateAxes();
// parentPlot->updateZoomInQwt();
// }
//}
if ( updateParentPlot )
{
RimSummaryPlot* parentPlot;
firstAncestorOrThisOfTypeAsserted(parentPlot);
if ( parentPlot->qwtPlot() )
{
parentPlot->updatePlotTitle();
parentPlot->qwtPlot()->updateLegend();
parentPlot->updateAxes();
parentPlot->updateZoomInQwt();
}
}
}
//--------------------------------------------------------------------------------------------------