From: Andrea T. <gur...@me...> - 2010-08-13 15:41:37
|
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, <gur...@me...> 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 |