[SciPy-user] mysterious problem with gplt.png
Christopher Fonnesbeck
chris at fonnesbeck.org
Sat Nov 29 12:15:41 EST 2003
On Nov 29, 2003, at 4:38 AM, Pearu Peterson wrote:
>
>
> 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
>
>
That's part of the trouble -- there are no errors. I have gnuplot
installed, and plots are generated without any trouble. However, when I
call png, no file is written.
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