mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#9092 WLP: show only axis for first and last track.
This commit is contained in:
@@ -1290,13 +1290,21 @@ void RimWellLogTrack::onLoadDataAndUpdate()
|
||||
|
||||
if ( wellLogPlot->depthOrientation() == RimDepthTrackPlot::DepthOrientation::VERTICAL )
|
||||
{
|
||||
// Show depth axis only for the first track (on the left side)
|
||||
bool isFirstTrack = wellLogPlot->isFirstVisibleTrack( this );
|
||||
m_plotWidget->setAxisEnabled( QwtAxis::XTop, true );
|
||||
m_plotWidget->setAxisEnabled( QwtAxis::XBottom, false );
|
||||
m_plotWidget->setAxisEnabled( QwtAxis::YLeft, isFirstTrack );
|
||||
m_plotWidget->setAxisEnabled( QwtAxis::YRight, false );
|
||||
}
|
||||
else
|
||||
{
|
||||
// Show depth axis only for the last track (on the bottom side)
|
||||
bool isLastTrack = wellLogPlot->isLastVisibleTrack( this );
|
||||
m_plotWidget->setAxisEnabled( QwtAxis::XTop, false );
|
||||
m_plotWidget->setAxisEnabled( QwtAxis::XBottom, true );
|
||||
m_plotWidget->setAxisEnabled( QwtAxis::XBottom, isLastTrack );
|
||||
m_plotWidget->setAxisEnabled( QwtAxis::YLeft, true );
|
||||
m_plotWidget->setAxisEnabled( QwtAxis::YRight, false );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user