mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-15 01:42:13 -05:00
#9092 WLP: show only axis for first and last track.
This commit is contained in:
1 parent
80961161d2
commit
b4bca2276f
4 files changed
+53
-4
No files matched your search
@@ -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