From: Steve B. <st...@ru...> - 2006-03-26 19:49:34
|
stdout stdout wrote: >Hello list! > >I spent the entire weekend trying to make the first example in the >screenshot section >(http://matplotlib.sourceforge.net/screenshots.html) work : > >from pylab import * > >t = arange(0.0, 2.0, 0.01) >s = sin(2*pi*t) >plot(t, s, linewidth=1.0) > >xlabel('time (s)') >ylabel('voltage (mV)') >title('About as simple as it gets, folks') >grid(True) >show() > >The given example works on my friend's system, but here what it does , >it's just a quiet exit : >$python example.py >$ > >I then try ed to run python with --verbose-helpful but it was still >all quiet. Also trying to install scipy & friends manually haven't >produced any success ;-( . > >I'm desperate as I really don't know where to look for the issue. I'm >that helps, i'm using gentoo. > > Well, I'm a new user. My gui doesn't work either. But that's fine with me since I'm only wanting to use pylab in a TurboGears/CherryPy web app. Until someone else can help you more, try putting a "savefig('filename.png') in place of the show(). You'll get a png written to filename which you can then view to your heart's content, in all its breathtaking glory, in the viewer of your choice. Hope this helps at least a little. -Steve |