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,  <butt...@gmail.com> 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 interactive plotting, as it would allow a simple
> undo feature based on commands such as del ax.lines[-1].


-- 
thanks,
peter butterworth

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to