#8411 Flow Cell Results : Set useful default legend

This commit is contained in:
Magne Sjaastad
2022-01-05 13:31:58 +01:00
parent 13425ce0e9
commit d578771a40
3 changed files with 18 additions and 0 deletions

View File

@@ -208,6 +208,12 @@ RimRegularLegendConfig* RimEclipseCellColors::createLegendForResult( const QStri
newLegend->resetUserDefinedValues();
}
if ( RiaResultNames::isFlowResultWithBothPosAndNegValues( resultName ) )
{
colorRangeType = RimRegularLegendConfig::ColorRangesType::BLUE_WHITE_RED;
newLegend->setCenterLegendAroundZero( true );
}
if ( colorRangeType != RimRegularLegendConfig::ColorRangesType::UNDEFINED )
{
RimColorLegend* colorLegend = RimRegularLegendConfig::mapToColorLegend( colorRangeType );