[SciPy-user] mysterious problem with gplt.png

Pearu Peterson pearu at scipy.org
Sat Nov 29 04:38:06 EST 2003



On Fri, 28 Nov 2003, Christopher Fonnesbeck wrote:

> I now have scipy more-or-less happily functioning on my OSX machine 
> (thanks to all that offered help and advice!). I am, however, running 
> into an odd problem with exporting plots using gplt to a png file. 
> gplt.png and gplt.output both refuse to output to the specified file, 
> even though the methods seem to run without error. I'm not even sure 
> how to debug this. Any ideas? Here is some sample code:
> 
> from scipy.gplt import *
> def plot_time_series(data,name,xlab='Time',ylab='State'):
> 	'Plot (mutiple) time series'
> 	
> 	plot(data)
> 	print 'Plotting',name
> 	grid('off')
> 	xtitle(xlab)
> 	ytitle(ylab)
> 	png("%s.png" % name)
> 	close()

The above function works here fine (png images are outputed
to specified files). Do you get any errors? What are they?
Just in any case, scipy.gplt requires gnuplot installed.

Pearu




More information about the SciPy-User mailing list