Results 1 to 3 of 3

Thread: shifting of axes to middle of qwt plot--help needed

  1. #1
    Join Date
    Oct 2006
    Posts
    75
    Thanks
    10
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default shifting of axes to middle of qwt plot--help needed

    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.



    thanks in advance. bye

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: shifting of axes to middle of qwt plot--help needed

    Foe axes on the canvas you have to use a QwtPlotScaleItem.

    Uwe

  3. #3
    Join Date
    Oct 2006
    Posts
    75
    Thanks
    10
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: shifting of axes to middle of qwt plot--help needed

    thanks Uwe,
    i got it solved.
    bye

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.