Hi,

I continue to have a little difficulty with the plot zoomers. I am using the same plot to display either time or distance data. The x Scales for these are completely different, i.e. distance 0 - 30 and time 0 - 3e-6s.

As such, I display them at different times, i.e. not on the same plot.

After each curve is plotted to the QwtPlot, I call pZoom->setZoomBase(). Then when I switch from time to distance, I clear the plot and destroy the old zoomer, then create a new one. Plot the distance curve and call pZoom->setZoomBase() again.

To my understanding, this should clear all the window conditions and reset the zoomer. However, when this happens, the plot retains the zoom base of the original time plot, i.e. xBottom 0- 3us and yLeft at the previous conditions.

Am I doing something stupid? I thought clear() did the job in the Plot and the destruction of the zoomer, would wipe out anything else.

Robbie