PDA

View Full Version : How to customize the X axis?



lvdong
9th August 2010, 11:49
for example:
x y
1 1
2 2
3 3
10 10
20 20
30 30
40 40
50 50

how to set the X axis scale to be 1 2, where 1 at x=2, and 2 at x=30

i am new to qwt, please help, thanks!

Uwe
9th August 2010, 19:42
If you want to have irregular scales use QwtPlot::setAxisScaleDiv().

Uwe

lvdong
10th August 2010, 02:53
thanks, got it.