Skip to content

Commit

Permalink
(#396) Align the canvas with the actual min and max values of the curves
Browse files Browse the repository at this point in the history
  • Loading branch information
palhagen committed Sep 2, 2015
1 parent 8d7bbb8 commit a44e548
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ApplicationCode/UserInterface/RiuWellLogTracePlot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ void RiuWellLogTracePlot::setDefaults()
plotLayout()->setAlignCanvasToScales(true);

axisScaleEngine(QwtPlot::yLeft)->setAttribute(QwtScaleEngine::Inverted, true);

// Align the canvas with the actual min and max values of the curves
axisScaleEngine(QwtPlot::xTop)->setAttribute(QwtScaleEngine::Floating, true);
axisScaleEngine(QwtPlot::yLeft)->setAttribute(QwtScaleEngine::Floating, true);
}

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

0 comments on commit a44e548

Please sign in to comment.