Animation with WX on OSX

Anyone able to “see” an animation using WXAgg 2.6 or otherwise on OS X 10.4 python 2.5 mpl 0.90.0
I can save figures and make a movie but nothing shows in the figure window until the animation is over.

even the example anim.py has the same behavior.

I have only been able to get it to work with tkAgg but that is seg faulting now.

···

Samuel M. Smith Ph.D.

2966 Fort Hill Road

Eagle Mountain, Utah 84005-4108

801-768-2768 voice

801-768-2769 fax


"The greatest source of failure and unhappiness in the world is

giving up what we want most for what we want at the moment"


Samuel M. Smith wrote:

Anyone able to "see" an animation using WXAgg 2.6 or otherwise on OS X 10.4 python 2.5 mpl 0.90.0

Please post a as-small-as-you-can-make-it sample, and I'll give it test here.

I can save figures and make a movie but nothing shows in the figure window until the animation is over.

I'm not too surprised. OS-X double buffers behind the scenes, and I think it waits until it thinks there is good reason to before it updates the screen. You need to force it in your code quite explicitly in a way you don't on other platforms. You might try adding a Refresh() and Update() call to the relevant wx.Window. Or maybe you need to do a wx.App.Yield()

even the example anim.py has the same behavior.

oops, I guess I can try that! Maybe I can get to it later today -- no time now!

-Chris

···

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

I'm not too surprised. OS-X double buffers behind the scenes, and I
think it waits until it thinks there is good reason to before it updates
the screen. You need to force it in your code quite explicitly in a way
you don't on other platforms. You might try adding a Refresh() and
Update() call to the relevant wx.Window. Or maybe you need to do a
wx.App.Yield()

I am not sure how I do that from matplotlib running in ipython
How do you get a handle to wx.Window and wx.App.Yield from MPL?
I do animations by calling MPL functions inside ipython --pylab.
Do you approach animations in a completely different way?

Sam