Stan Schymanski wrote:
> Not sure if this helps, but one way of saving images in a batch process
> is to create a unique name within the loop that creates the plots and
> save the image using this name. For example, if the loop increments the
> integer i, and the images are created using matplotlib (pylab) include
> the following in the loop:
>
> name = 'image'+str(i)+'.png'
> pylab.savefig(name)
>
for i in range(24):
dosomething_with_the_picture()
pylab.savefig('image%2i.png'%i)
will save image00.png, image01.png, ..., image23.png
Jaap
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---