mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-11 07:56:08 -06:00
Well Log Plot: avoid hard-coding depth/value axis
This commit is contained in:
parent
b4bca2276f
commit
413288df0a
@ -231,12 +231,15 @@ void RimWellLogCurve::updateCurveAppearance()
|
||||
|
||||
RimDepthTrackPlot* wellLogPlot = nullptr;
|
||||
firstAncestorOrThisOfType( wellLogPlot );
|
||||
if ( wellLogPlot ) orientation = wellLogPlot->depthOrientation();
|
||||
if ( wellLogPlot )
|
||||
{
|
||||
orientation = wellLogPlot->depthOrientation();
|
||||
|
||||
if ( m_plotCurve )
|
||||
{
|
||||
m_plotCurve->setXAxis( RiuPlotAxis::defaultTop() );
|
||||
m_plotCurve->setYAxis( RiuPlotAxis::defaultLeft() );
|
||||
m_plotCurve->setXAxis( wellLogPlot->valueAxis() );
|
||||
m_plotCurve->setYAxis( wellLogPlot->depthAxis() );
|
||||
}
|
||||
}
|
||||
|
||||
if ( fillStyle() != Qt::BrushStyle::NoBrush )
|
||||
@ -252,7 +255,7 @@ void RimWellLogCurve::updateCurveAppearance()
|
||||
else
|
||||
{
|
||||
qwtPlotCurve->setOrientation( Qt::Vertical );
|
||||
qwtPlotCurve->setBaseline( 0.0 );
|
||||
qwtPlotCurve->setBaseline( -std::numeric_limits<double>::infinity() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user