Re: [Matplotlib-users] How to remove an element from a graph?

2010-05-18 Thread Jae-Joon Lee
On Sun, May 16, 2010 at 3:19 PM, Philipp K. Janert pyt...@beyondcode.org wrote: Is this the best way to do this, or is there another way (or one that does not require an explicit draw()?). Also, Any change in your figure is realized when you draw() the figure. So there is no way that does not

Re: [Matplotlib-users] How to remove an element from a graph?

2010-05-18 Thread John Hunter
On Tue, May 18, 2010 at 12:58 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: All the artists that are drawn are kept in the figure instance, so you can inspect the figure instance. And you may use findobj for that if you want. On the other hand, Axes.texts keeps a list of text instances in the

Re: [Matplotlib-users] How to remove an element from a graph?

2010-05-18 Thread Philipp K. Janert
Thanks. On Tuesday 18 May 2010 12:13:27 pm John Hunter wrote: On Tue, May 18, 2010 at 12:58 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote: All the artists that are drawn are kept in the figure instance, so you can inspect the figure instance. And you may use findobj for that if you want.

[Matplotlib-users] How to remove an element from a graph?

2010-05-16 Thread Philipp K. Janert
Assume I am running an interactive session, using ipython -pylab and have added a bunch of curves x = linspace(0, 10, 100 ) plot( x, sin(x) ) plot( x, cos(x) ) and also added a text label text( 1, 1, Hello ) But now I decide that I don't want the text