Re: [matplotlib-devel] Last object added to the plot

2011-04-04 Thread Peter Butterworth
Sorry, my question was not clear. What you mention works, IF you know the last plotted object was a line and not a text... My question relates to trying to find this type of information automatically. On Mon, Apr 4, 2011 at 7:15 AM, wrote: > Hi, > > Does matplotlib keep track of the last object

Re: [matplotlib-devel] Last object added to the plot

2011-04-04 Thread Paul Ivanov
butt...@gmail.com, on 2011-04-04 05:15, wrote: > Hi, > > Does matplotlib keep track of the last object added to the plot axes > or its nature (line, text, collection, patch, etc.) ? > If not, would it be feasible to implement something like this in > matplotlib ? > > This could be useful for int

[matplotlib-devel] Last object added to the plot

2011-04-03 Thread butterw
Hi, Does matplotlib keep track of the last object added to the plot axes or its nature (line, text, collection, patch, etc.) ? If not, would it be feasible to implement something like this in matplotlib ? This could be useful for interactive plotting, as it would allow a simple undo featu