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 string, and I do want to use it as a file name.

> pylab.savefig('%s.png'% curVar)

   I wasn't aware of the savefig() function, and was trying to use save()
instead. As soon as I made that change, it worked.

Thanks for the lesson!

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to