On Thu, Oct 9, 2008 at 5:12 AM, Michael <[EMAIL PROTECTED]> wrote:

> I don't what is optimum, matplotlib has always been a bit hackish for
> animation i think

Calling cla or clf in the animation loop is probably always a bad
idea, because of the flashing you have noticed. Trying to use a simple
python loop called from the main level doesn't play nicely with the
GUI event loop and will fail in most cases.

I have written all of the animation examples in the
matplotlib/examples/animation directory to avoid a main level python
loop.  Ideally, you should use your GUI idle handler to trigger the
animation update.

  
http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/examples/animation/

I have spent some time trying to abstract this across the different
GUIs we support to make this easier on users, but have been stymied...

JDH

-------------------------------------------------------------------------
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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to