From: Wayne E. H. <wh...@pa...> - 2007-10-04 02:26:25
|
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 |