imshow remove

Hello List,

Normally, something added to axes in
a plot can later be removed by
saying element.remove(). All but
images, for example plotted with imshow,
since they lack a _remove_method.

Is that a bug or a feature?

Greetings

Martin Teichmann

Thank you for reporting.
I guess this was a simple oversight.
This should be fixed in the maint. branch and the trunk.

Meanwhile, you may manually set the remove method.

im = ax.imshow(...)
im._remove_method = lambda a: ax.images.remove(a)

Regards,

-JJ

ยทยทยท

On Thu, Oct 1, 2009 at 3:56 AM, Martin Teichmann <martin.teichmann@...780...> wrote:

Hello List,

Normally, something added to axes in
a plot can later be removed by
saying element.remove(). All but
images, for example plotted with imshow,
since they lack a _remove_method.

Is that a bug or a feature?

Greetings

Martin Teichmann

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel