PDA

View Full Version : shifting of axes to middle of qwt plot--help needed



swamyonline
3rd August 2008, 13:27
hi ppl,
in my application, im using QwtPlot for displaying a set of x,y values as curve. but my requirement is to show the left and bottom axes in middle of the widget,. i.e., to show the axes as its shown in cartesian coordinate system. but it seems, in QwtPlot, the axes r only show at left,top,right and bottom positions. pls help me how can i shift the left and bottom axes, crossing each other, to middle of the widget as shown in the following figure.

http://www.learningwave.com/lwonline/algebra_section2/graphics/planesm.gif

thanks in advance. bye

Uwe
3rd August 2008, 14:23
Foe axes on the canvas you have to use a QwtPlotScaleItem.

Uwe

swamyonline
4th August 2008, 09:14
thanks Uwe,
i got it solved.
bye