|
From: Darren D. <dar...@co...> - 2007-10-20 18:55:40
|
On Saturday 20 October 2007 12:42:46 pm John Hunter wrote: > On 10/20/07, Darren Dale <dar...@co...> 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. Thanks for the suggestion. The good news is, it looks like calling gc.collect is not necessary when updating the line's ydata and calling relim, autoscale_view and draw. Darren |