mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3098 Show depth axis only for left-most plot. They all share the same depth axis anyway.
This commit is contained in:
@@ -261,3 +261,17 @@ bool RiuWellLogTrack::isRimTrackVisible()
|
||||
return false;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuWellLogTrack::enableVerticalAxisLabelsAndTitle(bool enable)
|
||||
{
|
||||
QString depthAxisTitle("");
|
||||
if (enable && m_plotTrackDefinition)
|
||||
{
|
||||
depthAxisTitle = m_plotTrackDefinition->depthPlotTitle();
|
||||
}
|
||||
this->setAxisTitle(QwtPlot::yLeft, depthAxisTitle);
|
||||
this->axisScaleDraw(QwtPlot::yLeft)->enableComponent(
|
||||
QwtAbstractScaleDraw::Labels, enable);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user