Re: [matplotlib-devel] updating a plot without calling plot

2007-10-20 Thread Darren Dale
On Saturday 20 October 2007 12:42:46 pm John Hunter wrote: > On 10/20/07, Darren Dale <[EMAIL PROTECTED]> wrote: > > Here is the answer: > > > > ax = axes() > > lines, = plot([1,2,3], [1,2,3]) > > lines.set_ydata([4,5,6]) > > ax.relim() > > Yes, you may also want to see if calling gc.collect betwee

Re: [matplotlib-devel] updating a plot without calling plot

2007-10-20 Thread John Hunter
On 10/20/07, Darren Dale <[EMAIL PROTECTED]> wrote: > Here is the answer: > > ax = axes() > lines, = plot([1,2,3], [1,2,3]) > lines.set_ydata([4,5,6]) > ax.relim() Yes, you may also want to see if calling gc.collect between your plot calls frees up some of your memory. JDH --

Re: [matplotlib-devel] updating a plot without calling plot

2007-10-20 Thread Darren Dale
On Friday 19 October 2007 06:16:14 pm Darren Dale wrote: > On Friday 19 October 2007 05:23:38 pm Darren Dale wrote: > > I'm having some trouble updating a plot window without calling plot. I > > would like to do something like: > > > > ax = axes() > > lines, = plot([1,2,3], [1,2,3]) > > lines.set_y