example doesn't work

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.

Enjoy!

···

--

Utmpd author :
http://utmpdix.sourceforge.net/

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

Check your matplotlibrc to make sure you have a windowing toolkit
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!

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.

Enjoy!

--

Utmpd author :
http://utmpdix.sourceforge.net/

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
"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