Well you want to have a fixed ratio between the scale ranges and the rectangle on the target device. So you need to adjust one of them.
What you can do easily is to set the rectangle for the plot on the target device. When you know the rectangle for your canvas you could use a QwtPlotLayout to find out how many pixels title, scales and legend need and add them to your canvas rectangle.
The other option is to adjust the scales. For this you also have to calculate the layout for the canvas with a QwtPlotLayout first. But be aware of the problem, that changing the scales might change the size of the canvas ( f.e. tick labels need more space ).
Uwe




Reply With Quote
rint is now as following :

Bookmarks