On Sat, Sep 13, 2008 at 12:03 AM, Marshall Tappen <[EMAIL PROTECTED]> wrote:
> I am having problems with the WxAgg backend on the Mac not updating > figures. Using this test code: > for i in xrange(250,len(x),25): > h.set_data(x[:i],y[:i]) > axis([0,6*pi,-2,2]) > draw() > time.sleep(0.5) > print i > > Nothing changes until the script finishes. I've tried both 0.91.2 and Hi Marshall, this mode of animation is very brittle and usually only works with tkagg, if at all. I have been trying to update all the animation examples in examples/anim to reflect better usage patterns, but I noticed that some of these were broken too. I just patched them -- I am no wx expert so there may be better idioms, but I'm attaching the four here * simple_idle_wx.py - use the wx idle handler * simple_timer_wx.py - use the wx timer * animation_blit_wx.py - use selective artist drawing for faster animations * dynamic_image_wxagg2.py - animation with mpl embedded in a custom wx app Hope these help! JDH
simple_idle_wx.py
Description: Binary data
simple_timer_wx.py
Description: Binary data
animation_blit_wx.py
Description: Binary data
dynamic_image_wxagg2.py
Description: Binary data
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Matplotlib-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-users
