On Tue, May 20, 2008 at 8:31 AM, Marcus Vinicius Eiffle Duarte
<[EMAIL PROTECTED]> wrote:

> Thanks, John. That worked fine.
> But does this mean that I can't make the figure repaint just a
> portion/object, and always will have to repaint/refresh the whole figure
> (all objects)? Or does matplotlib automatically keep track of what objects
> were changes and refreshes only these?

If you call fig.canvas.draw, everything will be updated.  If you want
to selectively draw certain artists, you can use the animated property
w/ background copy/restore and the draw_artist method as described at

http://www.scipy.org/Cookbook/Matplotlib/Animations

Hope this helps,
JDH

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to