Results 1 to 2 of 2

Thread: How do I set proper zoom scale for each refresh

  1. #1
    Join Date
    Sep 2011
    Location
    Bangalore
    Posts
    254
    Thanks
    92
    Thanked 16 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default How do I set proper zoom scale for each refresh

    I'm plotting a histogram(used from TV Plot example) on QwtPlot. I'm using a QwtPlotZoomer object and setting it's canvas to my QwtPlot. I have a plot button which plots the current values. When the data values are changed after sometime and if I click plot, the new data points are plotted.

    Now the problem is after plotting for first time, when I zoom the plot area, it's working fine. But when I refresh the graph again, now if I zoom, it's zooming from the previous zoom level. How do I avoid this ?

  2. #2
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How do I set proper zoom scale for each refresh

    Did you set correct zoom base after changing the data?

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

    rawfool (7th June 2012)

Similar Threads

  1. Replies: 2
    Last Post: 21st May 2013, 10:43
  2. Replies: 2
    Last Post: 14th January 2011, 15:09
  3. Replies: 0
    Last Post: 10th January 2011, 09:42
  4. Replies: 1
    Last Post: 16th November 2009, 05:25
  5. Refresh axis scale drawing
    By jmsbc in forum Qwt
    Replies: 1
    Last Post: 14th June 2009, 14:45

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.