Dear John, thank you for your suggestion. Unfortunately, I have just tried that and I am positive that it does not work.
It works only if the option "frameon" of the figure is True, which is not what I want in this case (I have to produce a pdf with transparent background). Regards, Andrea On Aug 13, 2010, at 17:21 , John Hunter wrote: > On Fri, Aug 13, 2010 at 1:42 AM, <gurnem...@me.com> wrote: >> Dear All, >> >> I am trying to embed a matplotlib Figure into a Tkinter Canvas. The problem >> is, when I change the content of the figure (e.g. I delete and create new >> axes) the new items are plotted but the old items are not deleted. The old >> items disappear immediately when I resize the window. > > Just call fig.canvas.draw() after clearing the old items. This is > what the resize is doing. > > JDH ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users