Re: [Matplotlib-users] pylab.save() File Name Syntax

2008-02-01 Thread Rich Shepard
On Fri, 1 Feb 2008, Stephen George wrote: bit confused what your asking. are you looking for the pylab API savefig Stephen/Alan/Chloe: Yes, it turns out that I am. or you asking how to convert your variable+.png into a filename? is your variable a number?, string? The variable is a

[Matplotlib-users] pylab.save() File Name Syntax

2008-01-31 Thread Rich Shepard
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

Re: [Matplotlib-users] pylab.save() File Name Syntax

2008-01-31 Thread Alan G Isaac
On Thu, 31 Jan 2008, Rich Shepard apparently wrote: If I want to write pylab.save(curVar.png) where 'curVar' is a variable assigned programmatically, how do I correctly write it? Use string concatenation: curVar+'.png'

Re: [Matplotlib-users] pylab.save() File Name Syntax

2008-01-31 Thread Stephen George
Hi Rich, bit confused what your asking. are you looking for the pylab API savefig http://matplotlib.sourceforge.net/matplotlib.pyplot.html#-savefig or you asking how to convert your variable+.png into a filename? is your variable a number?, string? for count in range(3): count = count +1