On Thu, Dec 11, 2008 at 7:56 AM, TP <[EMAIL PROTECTED]> wrote: > TP wrote: > >> I have a question about the behavior of "del()" Python built-in. > > Ok, del only removes a name from the local namespace. > I have found an old answer of John, below. It seems that a better solution > is to use the remove method of a line instance: > > http://osdir.com/ml/python.matplotlib.general/2005-05/msg00045.html > > Until now, I used "del" which works well when the complete object hierarchy > is given...
The line is stored in axes.lines list, so simply deleting it will not work because there is a reference to it in the list. You need to remove it from the list, as you inidicate. See also http://matplotlib.sourceforge.net/users/artists.html ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users