#7967 Ensemble Well Log: make PERMX/PERMZ plots logarithmic by default

This commit is contained in:
Kristian Bendiksen 2021-09-17 12:05:34 +02:00
parent 3ce0edb046
commit e9b070c57f
2 changed files with 15 additions and 0 deletions

View File

@ -819,12 +819,26 @@ void RimEnsembleWellLogCurveSet::updateEnsembleCurves( const std::vector<RimWell
}
updateCurveColors();
setLogScaleFromSelectedResult( wellLogChannelName );
}
}
plotTrack->updateLegend();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimEnsembleWellLogCurveSet::setLogScaleFromSelectedResult( const QString resVar )
{
if ( resVar.toUpper().contains( "PERM" ) )
{
RimWellLogTrack* track = nullptr;
this->firstAncestorOrThisOfType( track );
if ( track ) track->setLogarithmicScale( true );
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -152,6 +152,7 @@ private:
void connectEnsembleCurveSetFilterSignals();
void onFilterSourceChanged( const caf::SignalEmitter* emitter );
void onEnsembleCurvesAppearanceChanged( const caf::SignalEmitter* emitter );
void setLogScaleFromSelectedResult( const QString resVar );
private:
caf::PdmField<bool> m_showCurves;