Re: [Matplotlib-users] removing lines from plot

2011-05-05 Thread Benjamin Root
On Wed, May 4, 2011 at 11:23 PM, 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. F

Re: [Matplotlib-users] removing lines from plot

2011-05-04 Thread butterw
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. Hi I've added some lines with ax.add_line(yellowlines) ax.add_line(redlines) how can I remove