PDA

View Full Version : How to remove margins from plot?



P@u1
27th July 2011, 11:39
Hi,

I want to display a plot without margins at the left and right sides.
I tried using



plot->axisScaleEngine(QwtPlot::xBottom)->setMargins(0., 0.);

but it doesen't change anything.

On both sides there is still free space which is not used by the plot.
How can I solve this?

Uwe
27th July 2011, 11:58
Check the examples.

Uwe

P@u1
27th July 2011, 14:10
Could you please give me a hint, in which example I have to look?

And if you're talking about settings the scale manually - this is what I already did and it works fine, but I would prefer not to have to do it.

Thanks again for your great help in the last days :-)