[SciPy-user] zero-size graphic files from gplt.output

Christopher Fonnesbeck chris at fonnesbeck.org
Wed Dec 10 17:39:58 CST 2003


I think I finally have gplt.output (mostly) working on OSX; the lone 
problem that remains is that often the resultant file will be of zero 
size. Here is the code:

from scipy.gplt import *
def plot_time_series(data,name,xlab='Time',ylab='State',suffix=''):
	'Plot (mutiple) time series'
	
	plot(data)
	print 'Plotting',name
	grid('off')
	xtitle(xlab)
	ytitle(ylab)
	output("%s%s.png" % (name,suffix),'png')
	close()

Any hints?

C.
--
Christopher J. Fonnesbeck ( c h r i s @ f o n n e s b e c k . o r g )
Georgia Cooperative Fish & Wildlife Research Unit, University of Georgia



More information about the SciPy-user mailing list