Ok, I found the answer and just wanted to post it for the archives. My script now begins with:
#!c:/Python25/python.exe -u import os,sys import cgi import cgitb; cgitb.enable() # set HOME environment variable to a directory the httpd server can write to os.environ[ 'HOME' ] = 'c:/www/app/tmp/' Then, before the savefig(), I had to set the content type: print "Content-Type: image/png\n" Then all worked well. I'll keep the agg backend script installed until the next release of matplotlib. Thanks John and Michael... So much help, short response times. -Rodney -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rodney Haynie Sent: Monday, May 19, 2008 10:21 PM To: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] Png stream through Stdout to the web Sorry, my file name is stdout.py, in both places. And here it is: #!c:/Python25/python.exe -u import sys import matplotlib matplotlib.use('Agg') from pylab import * plot ([1 ,2 ,3]) savefig( sys.stdout ) ------------------------------------------------------------------------- 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