PDA

View Full Version : Help: How do I restore original plot after several zooms?



jwieland
16th September 2009, 22:28
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.

jwieland
18th September 2009, 18:36
Any one, please?

Uwe
20th September 2009, 08:11
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

jwieland
20th September 2009, 23:03
Uwe,

Again, you are a life saver. Thanks.