On 24. feb.. 2009, at 08.11, Eric Firing wrote:
> Paul Anton Letnes wrote:
>> I want to save a large number of figures to file, roughly like this:
>> import pylab
>> for i in xrange(100):
>> pylab.plot(x[i], y[i])
>> pylab.savefig('plot' + str(i) + '.eps')
>> However, a large number of figure windows show up on screen, and
>> eventually, the application runs out of memory and crashes. How do
>> I avoid these windows?
> Replace the pylab.figure() command with pylab.clf(), or with
Thanks, this helps a lot. Is it possible to completely eliminate the
windows popping up? Though not very important, it is still annoying
that windows pop up when running a script in the background.