[SciPy-user] zero-size graphic files from gplt.output
pearu at cens.ioc.ee
Thu Dec 11 11:11:18 CST 2003
On Wed, 10 Dec 2003, Christopher Fonnesbeck wrote:
> 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'
> print 'Plotting',name
> output("%s%s.png" % (name,suffix),'png')
> Any hints?
Why don't you trace the cause of this problem yourself? Under linux (and
probably also under win32) there is no problem saving files from gplt. So,
the issue is probably related to your platform. Look at the code of gplt
and see where something may go wrong.. ie do the usual debugging..
More information about the SciPy-user