QWtPolar Chart(Need help to Individual calibrate the Azimuth axis)
Hi
I have a scenario where i need to calibrate the Individual azimuth axis with Different values.
For eg:- say i have 4 azimuth axis(0,90,180,360);
Each axis should be calibrated with different Minimum and maximum Upper limits.
for eg
0 Degree axis should have a minimum and maximum value of 0 to 10.
90 Degree axis should have a minimum and maximum value of 10 to 100.
180 Degree axis should have a minimum and maximum value of 100 to 200.
Can anyone suggest me how to calibrate the azimuth axis individually.
Thanks in advance
Re: QWtPolar Chart(Need help to Individual calibrate the Azimuth axis)
You have to start with deriving from QwtScaleTransformation implementing xForm/invXForm. like described above. p1, p2 are the angles while s1, s2 are the values from your scale.
Next you have to derive from QwtScaleEngine, where you return your transformation. You don't need a valid implementation of the autoScale method ( you don't want autoscaling for the azimuth scale ), but for divideScale. It is for calculating the ticks - in your case you can return some fixed positions.
Then assign your engine with QwtPolarPlot::setAxisScaleEngine() - let's see what happens.
Uwe