Results 1 to 4 of 4

Thread: Help: How do I restore original plot after several zooms?

  1. #1
    Join Date
    Feb 2009
    Posts
    51
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Help: How do I restore original plot after several zooms?

    Hi all,

    I have just made a QwtPlot to render contours quite successfully thanks to the help of several people, particularly Uwe. Now I run into another problem and hope you could help me out again:

    1) How do I restore the original plot after user perform several zooms? I am using the Spectrogram example here.

    2) How do I right markers at certain point on the plot? Like a "+" and a legend beneath it or something to the same effect?

    Thank you so much for all your help.
    Sincerely,

    Wieland J.

  2. #2
    Join Date
    Feb 2009
    Posts
    51
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Help: How do I restore original plot after several zooms?

    Any one, please?
    Sincerely,

    Wieland J.

  3. #3
    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: Help: How do I restore original plot after several zooms?

    Quote Originally Posted by jwieland View Post
    1) How do I restore the original plot after user perform several zooms? I am using the Spectrogram example here.
    The default implementation of the zoomer unzooms after a click with the right mouse button or pressing ESC. Of course you can configure your zoomer object to implement your individual type of navigation.
    2) How do I right markers at certain point on the plot? Like a "+" and a legend beneath it or something to the same effect?
    Use a picker in point selection mode and connect the selected(QwtDoublePoint &) signal to a slot, where you insert your marker.

    HTH,
    Uwe

  4. #4
    Join Date
    Feb 2009
    Posts
    51
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Help: How do I restore original plot after several zooms?

    Uwe,

    Again, you are a life saver. Thanks.
    Sincerely,

    Wieland 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.