On Tue, Feb 12, 2013 at 5:09 AM, mameghani <raph...@mameghani.de> wrote:
> Does anyone know if the following error message is a matplotlib bug or is
> it
> me making a mistake?
> Is there an correct/alternative way to remove (or replace) text? Thank you,
> Raphael
>
> from matplotlib.figure import Figure
> fig = Figure()
> caption = fig.suptitle("test")
> caption.remove()
>
> Traceback (most recent call last):
> File "<pyshell#6>", line 1, in <module>
> caption.remove()
> File "C:\Programme\Python27\lib\site-packages\matplotlib\artist.py",
> line 134, in remove
> raise NotImplementedError('cannot remove artist')
> NotImplementedError: cannot remove artist
>
>
>
Heh, strange... it looks like most artist objects don't actually define a
remove function. I suppose you could do "fig._suptitle = None" in the
meantime, though.
Ben Root
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users