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 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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to