How to remove extra canvas margin from QwtPlot

28 views Asked by At

In QwtPlot there is always added extra space beyond scale that was set (0 to 1000 in this case). In the picture it was marked with red lines. How to remove this extra space, so the plot would have proper scale? enter image description here

1

There are 1 answers

0
pawrok On

I found solution, if qwtPlt is pointer to QwtPlot class, then:

qwtPlt->plotLayout()->setAlignCanvasToScales(true);