mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#464) Set logarithmic scale if PERM is selected as single curve
This commit is contained in:
@@ -276,6 +276,8 @@ void RimWellLogExtractionCurve::updatePlotData()
|
||||
|
||||
zoomAllOwnerTrackAndPlot();
|
||||
|
||||
setLogScaleFromSelectedResult();
|
||||
|
||||
if (m_ownerQwtTrack) m_ownerQwtTrack->replot();
|
||||
}
|
||||
}
|
||||
@@ -418,6 +420,26 @@ void RimWellLogExtractionCurve::defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiT
|
||||
uiTreeOrdering.setForgetRemainingFields(true);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogExtractionCurve::setLogScaleFromSelectedResult()
|
||||
{
|
||||
QString resVar = m_eclipseResultDefinition->resultVariable();
|
||||
|
||||
if (resVar.toUpper().contains("PERM"))
|
||||
{
|
||||
RimWellLogTrack* track = NULL;
|
||||
this->firstAnchestorOrThisOfType(track);
|
||||
if (track)
|
||||
{
|
||||
if (track->curveCount() == 1)
|
||||
{
|
||||
track->setLogarithmicScale(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user