(#396) Made sure that the plot canvas is aligned to the scales

This commit is contained in:
Pål Hagen 2015-09-01 15:48:53 +02:00
parent caddfd01ed
commit b5684b5255

View File

@ -22,6 +22,7 @@
#include "qwt_plot_grid.h"
#include "qwt_legend.h"
#include "qwt_scale_engine.h"
#include "qwt_plot_layout.h"
//--------------------------------------------------------------------------------------------------
///
@ -74,6 +75,8 @@ void RiuWellLogTracePlot::setDefaults()
enableAxis(QwtPlot::xBottom, false);
enableAxis(QwtPlot::yRight, false);
plotLayout()->setAlignCanvasToScales(true);
axisScaleEngine(QwtPlot::yLeft)->setAttribute(QwtScaleEngine::Inverted, true);
}