PDA

View Full Version : fixed axis scales



oskarmellow
16th December 2008, 19:27
Hi,

I'm trying to make the y-axis not resize when the plot resizes.
In other words, when the plot resizes, i'd like the y-axis to show a larger range if the size increases and to show a smaller range of it decreases.

right now, the y-axis range stays constant when resizing, which makes my graphs grow/shrink.

Uwe
17th December 2008, 07:20
If you download a Qwt 5.2 snapshot from SVN you find a class QwtPlotRescaler. The unfinished navigation example shows how to use it.

AFAIR QwtPlotRescaler is compatible with Qwt 5.1. If not copy/adjust the code.

Uwe