#4337 Group grid cross plots created from view by formations

This commit is contained in:
Gaute Lindkvist 2019-04-15 10:45:46 +02:00
parent f9e3db6aa6
commit 48c6139cb2

View File

@ -153,6 +153,11 @@ void RimGridCrossPlotDataSet::setCellFilterView(RimGridView* cellFilterView)
m_yAxisProperty->setResultVariable("DEPTH");
m_timeStep = eclipseView->currentTimeStep();
m_grouping = NO_GROUPING;
if (eclipseView->eclipseCase() && eclipseView->eclipseCase()->activeFormationNames())
{
m_grouping = GROUP_BY_FORMATION;
m_groupingProperty->legendConfig()->setColorRange(RimRegularLegendConfig::CATEGORY);
}
RimGridCrossPlot* parentPlot = nullptr;
firstAncestorOrThisOfType(parentPlot);