Results 1 to 3 of 3

Thread: is it posible to invert the axes?

  1. #1
    Join Date
    Jan 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default is it posible to invert the axes?

    I'm new to Qt and qwt, so sorry if I make a silly question. I've look at the manuals, but haven't found an answer to my question which is:

    Can you invert the direction of an axe? That is, say you have a distance-time plot. Instead of having the time increased from the bottom to the top, I would like the time to increase from the top to the bottom, and the distance axe to be located at the top of the plot. The later I now how to do, but to change the direction of the y-axe have no idea...

    Best regards.

    P.D. the attached image shows what I'm trying to do.
    Attached Images Attached Images

  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: is it posible to invert the axes?

    The answer depends on how you define your axes. When you set your scales explicitely by using setAxisScale you can simple change the min/max parameters. If you are using the autoscaler you have to set the QwtScaleEngine::Inverted flag for your scale engine.

    Uwe

  3. #3
    Join Date
    Jan 2010
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: is it posible to invert the axes?

    Thanks! I was doing something wrong.

Similar Threads

  1. Plot Axes
    By mcarter in forum Qwt
    Replies: 0
    Last Post: 4th December 2009, 23:47
  2. Fixed size axes
    By wim12 in forum Qwt
    Replies: 4
    Last Post: 15th May 2009, 12:37
  3. QwtPlotMagnifier Invert Wheel Zoom
    By jmsbc in forum Qwt
    Replies: 2
    Last Post: 12th March 2009, 23:12
  4. Default axes after calling zoom(0)
    By Paladin12 in forum Qwt
    Replies: 3
    Last Post: 8th December 2008, 23:40
  5. Replies: 2
    Last Post: 4th August 2008, 08:14

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.