PDA

View Full Version : How to rotate qwt polar coordinate?



qmonkey
23rd September 2008, 16:47
e.g. instead of 0( or 360) degree on the right side of coordinate, how to rotate the scale clock-wise 90 degree so that 0 degree is displaying on the top?

Thanks in advance!

Uwe
23rd September 2008, 17:57
In SVN you find a method QwPolarPlot::setAzimuthOrigin(). Using it you can rotate the plot.

Uwe

qmonkey
23rd September 2008, 19:50
Thanks, Uwe.

What do you mean "in svn"? I couldn't find setAzimuthOrigin() in qwtpolar document.

Uwe
23rd September 2008, 20:27
This means you need a development snapshot from the SVN ( = SubVersion ) repository. Read the download section on the QwtPolar project page.

Uwe

qmonkey
23rd September 2008, 20:55
got it, thanks a lot!

olaks
27th January 2010, 10:49
Tried using setAzimuthOrigin(newAngle) to rotate the spectrogram example 45 degrees, i.e. newAngle=pi/4. Now all data above 270 degrees = 2pi-pi/4 get clipped away. Is there a good fix for this?