mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 07:16:53 -06:00
#2838 Ensemble Curve Name : Show curve name in parameter legend title
This commit is contained in:
parent
cff95a1880
commit
483f19e5ca
@ -595,8 +595,25 @@ void RimEnsembleCurveSet::updateCurveColors()
|
||||
if(m_colorMode == BY_ENSEMBLE_PARAM)
|
||||
{
|
||||
RimSummaryCaseCollection* group = m_yValuesSummaryGroup();
|
||||
|
||||
QString parameterName = m_ensembleParameter();
|
||||
m_legendConfig->setTitle(parameterName);
|
||||
|
||||
{
|
||||
QString legendTitle;
|
||||
if (m_isUsingAutoName)
|
||||
{
|
||||
legendTitle = m_autoGeneratedName();
|
||||
}
|
||||
else
|
||||
{
|
||||
legendTitle += m_userDefinedName();
|
||||
}
|
||||
|
||||
legendTitle += "\n";
|
||||
legendTitle += parameterName;
|
||||
|
||||
m_legendConfig->setTitle(legendTitle);
|
||||
}
|
||||
|
||||
if (group && !parameterName.isEmpty())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user