Re: [Matplotlib-users] savefig memory useage

2007-12-04 Thread Jordan Atlas
Mike, Updating to 0.91.1 fixed it. Python's memory usage was climbing in excess of 1 GB when running this script before (eventually crashing) -- now it hovers nicely around 60MB and completes with no problems. Excellent! Thanks, --Jordan Michael Droettboom wrote: > You can try running

Re: [Matplotlib-users] savefig memory useage

2007-12-04 Thread Michael Droettboom
You can try running the garbage collector after each savefig. ("import gc" and then call "gc.collect()"). If you are using a GUI backend, you may want to try using the "raw" Agg backend instead -- there are fewer moving parts that way. There have been a number of memory leaks that have been f

[Matplotlib-users] savefig memory useage

2007-12-04 Thread Jordan Atlas
Hi all, I've noticed that when I save my figures using savefig the memory is not immediately released. For example, in pseudocode, times = get_times() for var_id in var_list: Plotting.figure() var_values = get_values(var_id) pylab.plot(times, values) Plotting.savefig(var+'.p