(#396) Align the canvas with the actual min and max values of the curves

This commit is contained in:
Pål Hagen 2015-09-02 16:41:12 +02:00
parent 8d7bbb85a9
commit a44e548f93

View File

@ -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);
}
//--------------------------------------------------------------------------------------------------