Eric Firing wrote:
Wayne,

I'm stumped. Do you get a segfault only with the gui backend? Can you you do this:

import matplotlib
matplotlib.use('Agg')
import pylab
pylab.plot([1,2,3])
pylab.savefig('test.png')

Eric
<previous stuff snipped>

OK, this worked. I have attached the test,png file that resulted. But I don't quite know what this means ...

IDLE 1.2.1 >>> import matplotlib
>>> matplotlib.use('Agg')
>>> import pylab
>>> pylab.plot([1,2,3])
[<matplotlib.lines.Line2D instance at 0x87cd56c>]
>>> pylab.savefig('test.png')
>>>

The other suggestion from Michael about using gdb will have to wait until I download, install and learn to use it, but if that's required, that's what I'll do.

Thanks

Wayne

<<inline: test.png>>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to