Set grouping by formations and category colors as default for Grid Cross Plots if formations are available

This commit is contained in:
Gaute Lindkvist 2019-04-15 09:33:42 +02:00
parent 3a91412d6c
commit c2032fd948

View File

@ -1265,6 +1265,13 @@ void RimGridCrossPlotDataSet::setDefaults()
m_yAxisProperty->setResultType(RiaDefines::STATIC_NATIVE); m_yAxisProperty->setResultType(RiaDefines::STATIC_NATIVE);
m_yAxisProperty->setResultVariable("PERMX"); m_yAxisProperty->setResultVariable("PERMX");
m_grouping = NO_GROUPING;
if (eclipseCase->activeFormationNames())
{
m_grouping = GROUP_BY_FORMATION;
m_groupingProperty->legendConfig()->setColorRange(RimRegularLegendConfig::CATEGORY);
}
} }
} }
} }