wxOscilloscope was moving pyplot

As said, it does not work under
windows correctly.

Now it does. It turns out that DC.GetBackground() was returning a
transparent, black brush, rather than one with the background color in
it. Wierd. Anyway, I've fixed it, and it works now. I've also been
working on version that will preserve grid lines, but that's on my other
machine.

Fixed version attached.

By the way, you get an error if you turn off all the signals. Not a
reaqll biggie, but annoying.

-Chris

-- --
Christopher Barker, Ph.D.
Oceanographer
                                                
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

Peter Wurmsdobler wrote:

> Now it does. It turns out that DC.GetBackground() was returning a
> transparent, black brush, rather than one with the background color in
> it.
Where does this happen, and what was the fix?

In the PlotCanvas.DrawData() method. It draws a rectangle in teh plot
area, to clear the plot. It's suppposed to use the same brush as the
background. THe fix was to get the background color from self, and build
the appropriate brush.

> Fixed version attached.
Sorry, but there was nothing attached.

OOPS, here it is again.

By the way. The version I'm sending is kind of kludgy, and it can't draw
a grid. I'm in the process of cleaning it up. Hopefully I'll send a
beter one out soon. The API will probably stay the same, so you might as
well use this one for now. I also think Gordon is going to take a look
at what I've done, and hopefully something like this will make it into
the "official" wxPyPlot.

-Chris

-- --
Christopher Barker, Ph.D.
Oceanographer
                                                
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

wxPyPlot.py (55.7 KB)