I want to save plots programmatically, using a variable + .png as the
filename. I don't see an example of the proper syntax, and my
trial-and-error approach hasn't yielded a solution, either.
If I want to write
pylab.save(curVar.png)
where 'curVar' is a variable assigned programmatically, how do I correctly
write it?
Rich
···
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
pylab.savefig('%s.png'% curVar)
or
pylab.savefig('%d.png'% curVar)
Does anything here help?
Steve
Rich Shepard wrote:
···
I want to save plots programmatically, using a variable + .png as the
filename. I don't see an example of the proper syntax, and my
trial-and-error approach hasn't yielded a solution, either.
If I want to write
pylab.save(curVar.png)
where 'curVar' is a variable assigned programmatically, how do I correctly
write it?