On Wed, May 4, 2011 at 11:23 PM, <butt...@gmail.com> wrote:

> redlines.set_visible(False)
>
> it is also possible to delete the line from ax.lines.
> Ex: del ax.lines[-1] deletes the last line.
>
> you need to perform a redraw for the change to be visible on the plot.
>


There are more "correct" ways to do this.  For example, each artist object
comes with a "remove" method:

http://matplotlib.sourceforge.net/api/artist_api.html?highlight=remove#matplotlib.artist.Artist.remove

So, if you save the lines that you create from the call to plot, you can
subsequently remove them at your leisure.

Ben Root
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to