Title: Signature.html
The terminal window flashed briefly, and apparently never got to the finish() def, which should keep the window open, but long enough to see there's nothing in it. The program came directly from the MatPlotLib web page. Another one died in a similar way. I put finish() after the plot line and it died the same way. Same if I put it before plot. Same before arrange. Dies same way with only the import line. There must be something wrong with the matplot module install?

Alan Gauld wrote:

"Wayne Watson" <[EMAIL PROTECTED]> wrote
Here's the code.
If I just execute it, the terminal window opens briefly and disappears.

What happens if you execute it from a terminal window?
That way any error messages will be visible.

What happens if you ruin it from inside IDLE or Pythonwin?

THe fact that you have a raw_input means the code should pause
at that point, if it isn't it probably suiggets a syntax error or similar
in the code before that point...

from pylab import *

def finish():
   print; print "Bye"
   print
   raw_input('Press Enter to Quit')
   sys.exit()

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()
finish()

HTH,



--
           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)
            
        "Things are going to get a lot worse befoe they get worse."
                    -- Lily Tomlin
            
                    Web Page: <www.speckledwithstars.net/>
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to