Hi Jae-Joon,

yes, that solved it. Thank you very much.

The savefig command should have been inside the for-loop.


Thomas

> -----Original Message-----
> From: Jae-Joon Lee [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 31, 2008 12:43 PM
> To: Thomas Pfaff
> Cc: Michael Droettboom; matplotlib-users@lists.sourceforge.net
> Subject: Re: [Matplotlib-users] no canvas reinitialization between calls
> to savefig
> 
> I can reproduce Thomas' problem with Agg backend. It does not happen
> if frame_on is True.
> And I guess Thomas' guess in the first email might be right.
> I had a quick look at the mpl source and I don't think draw(),  clf()
> or savefig() try to clear the canvas.
> The problem is not visible if frame_on is True.
> 
> Thomas,
> Put following line after the savefig() function
> 
>    fig.canvas._lastKey = None
> 
> and see if it solves the problem (savefig command in your original
> email is outside the for loop, I guess this was a typo).
> 
> The Agg backend has a clear() method which fills the canvas with (1,
> 1, 1, 0).  I tried to put this method in a few different places.  It
> worked for savefig(), but I couldn't get it work in the interactive
> backend (GtkAgg).
> 
> Regards,
> 



-------------------------------------------------------------------------
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