Results 1 to 2 of 2

Thread: QwtPlot - Revert to initial state after zooming has been cancelled

  1. #1
    Join Date
    Jan 2009
    Posts
    17
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QwtPlot - Revert to initial state after zooming has been cancelled

    Hi,
    I have a QwtPlot and would like to add panning and zooming capability. At the beginning the plot canvas as well as the scale axes are automatically and properly re-scaled after replot() when attaching or detaching QwtPlotCurves. (This has to be done as the data series to be displayed are selectable according some filters.) When I add a QwtPlotZoomer, then zooming works fine. But after cancelling zoom mode by right mouse button (default) the re-scaling does never work again. What means that the plot does not really revert to its initial state.
    What can I do?

    Thank's
    Stefan

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

    Default Re: QwtPlot - Revert to initial state after zooming has been cancelled

    When you assign a scale explicitely (f.e. zooming in/out) autoscaling is turned off as long as you don't reenable it.

    Uwe

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

    StefanK (7th January 2009)

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.