Re: [Matplotlib-users] use of del() to delete a line

2008-12-11 Thread John Hunter
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 rem

Re: [Matplotlib-users] use of del() to delete a line

2008-12-11 Thread TP
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.gene

[Matplotlib-users] use of del() to delete a line

2008-12-11 Thread TP
Hi everybody, I have a question about the behavior of "del()" Python built-in. In the following example, when I use del() on the copy of a line, it does not delete it, whereas with the original line, it works. Why? I do not understand, because the id is the same for the copy and the original: ###