Re: [Matplotlib-users] change a matplotlib.lines.Line2D and update the plot

2009-06-15 Thread Sandro Tosi
On Mon, Jun 15, 2009 at 16:36, TP wrote: > Hi everybody, > > I want to modify a matplotlib.lines.Line2D and update the plot. > I have used Line2D._y member to modify the line. It works. But by doing > canvas.draw() (see example below), the line is not updated on the plot. To > update it, I have to

Re: [Matplotlib-users] change a matplotlib.lines.Line2D and update the plot

2009-06-15 Thread John Hunter
On Mon, Jun 15, 2009 at 9:36 AM, TP wrote: > Hi everybody, > > I want to modify a matplotlib.lines.Line2D and update the plot. > I have used Line2D._y member to modify the line. It works. But by doing > canvas.draw() (see example below), the line is not updated on the plot. To > update it, I have t

[Matplotlib-users] change a matplotlib.lines.Line2D and update the plot

2009-06-15 Thread TP
Hi everybody, I want to modify a matplotlib.lines.Line2D and update the plot. I have used Line2D._y member to modify the line. It works. But by doing canvas.draw() (see example below), the line is not updated on the plot. To update it, I have to do autoscale_view(). But I do not want the x and y r