Re: [Matplotlib-users] Removing text from a figure

2013-02-12 Thread Benjamin Root
On Tue, Feb 12, 2013 at 5:09 AM, mameghani 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

Re: [Matplotlib-users] Removing text from a figure

2013-02-12 Thread mameghani
My temporary solution is to clear the figure via clf() and to recreate the plot without the elements I do not want any more. -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Removing-text-from-a-figure-tp40424p40427.html Sent from the matplotlib - users mailing list arch

[Matplotlib-users] Removing text from a figure

2013-02-12 Thread mameghani
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