Results 1 to 4 of 4

Thread: Default axes after calling zoom(0)

  1. #1
    Join Date
    Jul 2008
    Posts
    31
    Thanks
    1
    Thanked 5 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Default axes after calling zoom(0)

    Apologies if this has been asked before (it probably has), but when I zoom out using zoom(0) my plot does not return to the original scale, it goes to the default [0,1000][0,1000] scale.

    I initialised my plot before the zoomer, and the first plot is fine. However, my plot needs to be redrawn often (due to changing data) and after the first redraw a call to zoom(0) has lost all sense of the appropriate scales. I know about setZoomBase(...) but I've never seen a useful example of it used, if indeed that is the solution to this problem.

    Has anyone solved this in the past?

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

    Default Re: Default axes after calling zoom(0)

    Apologies if this has been asked before (it probably has), ...
    It has.
    I know about setZoomBase(...)
    Ok, but what is your question then ?

    Uwe

  3. #3
    Join Date
    Jul 2008
    Posts
    31
    Thanks
    1
    Thanked 5 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Default axes after calling zoom(0)

    Well I guess there are two questions:

    1. Is setZoomBase(...) the solution?

    and if so

    2. Can someone supply an example of how to use it? It's not clear to me.

    J
    Last edited by Paladin12; 8th December 2008 at 23:33.

  4. #4
    Join Date
    Jul 2008
    Posts
    31
    Thanks
    1
    Thanked 5 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Default axes after calling zoom(0)

    Never mind. I got it.

    J

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.