From: stdout s. <azi...@gm...> - 2006-03-26 18:25:44
|
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 =3D arange(0.0, 2.0, 0.01) s =3D sin(2*pi*t) plot(t, s, linewidth=3D1.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. Enjoy! -- Utmpd author : http://utmpdix.sourceforge.net/ |
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 |
From: John B. <by...@bu...> - 2006-03-26 19:50:38
|
Check your matplotlibrc to make sure you have a windowing toolkit=20 backend selected (TkAgg, GTKAgg, WXAgg, etc.) It sounds like you might have the postscript backend or similar selected. John On Sun, Mar 26, 2006 at 08:25:37PM +0200, stdout stdout wrote: > Hello list! >=20 > I spent the entire weekend trying to make the first example in the > screenshot section > (http://matplotlib.sourceforge.net/screenshots.html) work : >=20 > from pylab import * >=20 > t =3D arange(0.0, 2.0, 0.01) > s =3D sin(2*pi*t) > plot(t, s, linewidth=3D1.0) >=20 > xlabel('time (s)') > ylabel('voltage (mV)') > title('About as simple as it gets, folks') > grid(True) > show() >=20 > The given example works on my friend's system, but here what it does , > it's just a quiet exit : > $python example.py > $ >=20 > 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 ;-( . >=20 > I'm desperate as I really don't know where to look for the issue. I'm > that helps, i'm using gentoo. >=20 > Enjoy! >=20 >=20 >=20 > -- >=20 > Utmpd author : > http://utmpdix.sourceforge.net/ >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge > that extends applications into web and mobile media. Attend the live webc= ast > and join the prime developer group breaking into this new coding territor= y! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=110944&bid$1720&dat=121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users --=20 "I'll carry your books, I'll carry a tune, I'll carry on, carry over, carry forward, Cary Grant, cash & carry, Carry Me Back To Old Virginia, I'll even Hara Kari if you show me how, but I will *not* carry a gun." -- Hawkeye, M*A*S*H |
From: John H. <jdh...@ac...> - 2006-03-27 15:21:34
|
>>>>> "John" == John Byrnes <by...@bu...> writes: John> Check your matplotlibrc to make sure you have a windowing John> toolkit backend selected (TkAgg, GTKAgg, WXAgg, etc.) It John> sounds like you might have the postscript backend or similar John> selected. If you build from source, and no GUI toolkits are detected at build time, then eiterh Agg or PS will be selected as your default backend. However, you should still see output when running in verbose-helpful. I have never seen the kind of behavior you describe. Could you give us a little more information (are you building from source, what version, what backend do you have set, what is your python version)? JDH |