Eric: First thanks for all the help. Here's the scoop after I replied to your earlier post. I thought a bit about the sense of where you were going (it always helps to think a bit). So I decided to try compiling matplotlib with the GTK backend instead of Tk. I have gtk-2.11.5. So I did some sed's to the setup.py file:
sed -i "s|BUILD_GTKAGG = 'auto'|BUILD_GTKAGG = 1|" setup.py && sed -i "s|BUILD_GTK = 'auto'|BUILD_GTK = 1|" setup.py && sed -i "s|BUILD_TKAGG = 'auto'|BUILD_TKAGG = 0|" setup.py && and then proceeded. It turned out that I needed pygtk, so I downloaded that and installed it, but pygtk still complained about not having pycairo (which it says is optional), so I downloaded that. Making a long story short, installing pycairo-1.4.0, pyobject-2.14.0, pygtk-2.10.6 and then reinstalling matplotlib with the above sed's did the trick. I'm displaying all the plots I have been able to in XP (so I don't need XP any more, at least at home). Once again, thanks for the suggestions. Although I'm set here, I wonder about the tcl/tk issue with matplotlib. I am using tcl/tk-8.4.15. I wonder if it's too new ? Or is there some other package that is needed ? Wayne Eric Firing wrote: > Wayne, > > Segfaults are generally caused by problems in extension code or > libraries. The fact that the plotting works with a non-gui backend > indicates that the problem is not in matplotlib's transform or Agg > extension code, or in the bits of numpy code that get used along the > way. I was pretty sure this would be the case; all of those > components are solid and well-tested together, at least for simple > plotting. > > That tends to throw suspicion on Tkinter/Tk/Tcl or one of mpl's > extension bits that is run with Tk. I'm not sure there are any in > this case. > > One way to narrow it down is to try another gui: gtk or qt. Do you > have either of these libraries installed? > > Eric > > Wayne E. Harlan wrote: >> >> >> 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 >> >> >> ------------------------------------------------------------------------ >> > > ------------------------------------------------------------------------- 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