Skip to content

Commit

Permalink
(#460) Show grid using logarithmic scale div
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Dec 9, 2015
1 parent dd78842 commit b806394
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ApplicationCode/ProjectDataModel/RimWellLogTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,13 +398,20 @@ void RimWellLogTrack::updateAxisScaleEngine()
if (m_isLogarithmicScaleEnabled)
{
m_wellLogTrackPlotWidget->setAxisScaleEngine(QwtPlot::xTop, new QwtLogScaleEngine);

// NB! Must assign scale engine to bottom in order to make QwtPlotGrid work
m_wellLogTrackPlotWidget->setAxisScaleEngine(QwtPlot::xBottom, new QwtLogScaleEngine);
}
else
{
m_wellLogTrackPlotWidget->setAxisScaleEngine(QwtPlot::xTop, new QwtLinearScaleEngine);

// NB! Must assign scale engine to bottom in order to make QwtPlotGrid work
m_wellLogTrackPlotWidget->setAxisScaleEngine(QwtPlot::xBottom, new QwtLinearScaleEngine);
}
}


//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit b806394

Please sign in to comment.