PDA

View Full Version : Scaling QwtSpectogram respectively the Axes



revellix
30th September 2011, 15:33
Hi Community,

I want to make a QwtSpectrogram that shows me the pressure_distribution in a gas lubricated bearing. For a gas bearing with a quadratic geometry I get the following picture:

http://i51.tinypic.com/mr45qp.png

When I now change the geometry to be rectangular, I get:

http://i54.tinypic.com/aayi5l.png

I want the axes to scale themselves automatically to see the difference between the length and width. I changed the picture manually -> this is what I want it to look like:

http://i52.tinypic.com/2jdrqt5.png




Any suggestions ? I simply dont get it.

Uwe
1st October 2011, 09:16
If this is about having a fixed aspect ratio: see QwtPlotRescaler.

Check the navigation example,

Uwe

revellix
2nd October 2011, 01:08
fixed aspect ratio ... hard to be a newbie and not being native english speaker. thanks a lot.

Uwe
2nd October 2011, 13:52
It' probably sometimes hard for native English speaker too. It would be a great support if a native speaker would check API and documentation and send me patches.

Uwe