Results 1 to 2 of 2

Thread: QwtZoomer problem when I change axis scale [SOLVED]

  1. #1
    Join Date
    Mar 2009
    Posts
    98
    Thanks
    3
    Thanked 9 Times in 9 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QwtZoomer problem when I change axis scale [SOLVED]

    Hi,
    I have a plot of some data, with a zoomer and a panner.
    Every time I click a button I reset the data of the curve and also I change the x axis scale.
    The problem is the zoom out of the Zommer: it restores the first x axis scale that I've set. But this is no longer valid for the current chart.

    I've read this post: http://www.qtcentre.org/forum/f-qwt-...lot-13012.html
    I don't understand what should I do.

    Thanks
    Last edited by PaceyIV; 19th May 2009 at 11:18.

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

    Default Re: QwtZoomer problem when I change axis scale

    When you change the axes behind the back of the zoomer, you have to reinitialize it with zoomer->setZoomBase().

    Uwe

  3. The following user says thank you to Uwe for this useful post:

    PaceyIV (19th May 2009)

Similar Threads

  1. qwp plot axis scale
    By Cal in forum Qwt
    Replies: 1
    Last Post: 11th May 2009, 17:10
  2. Axis with a probability scale
    By Lister in forum Qwt
    Replies: 1
    Last Post: 5th May 2009, 06:45
  3. Axis won't stay at new scale setting
    By Maxicatten in forum Qwt
    Replies: 5
    Last Post: 9th April 2009, 04:03
  4. Replies: 0
    Last Post: 6th March 2009, 08:19

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.