Anyone Have (XP) 2.4.4 Installed and Can Check This Simple matplotlib Program?

W. eWatson notvalid2 at sbcglobal.net
Wed Oct 15 06:38:42 CEST 2008


I'm going to try another stab at this problem again. I'd like someone with 
2.4.4 and  matplotlib-0.98.3.win32-py2.4exe to try it (below). It produces a 
runtime error, and python (IDLE) dies. If I use from the console "import 
matplotlib" or variations (pythonw), it fails.

I think is the final shot on this. If it won't work, I'm off to 2.5, and 
will drag some others with me who use the common program I'm trying to add a 
feature to.

Here's the code I pulled from the matplotlib site. I added finish() to it.

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


-- 
                                W. eWatson

              (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
               Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet

                     Web Page: <www.speckledwithstars.net/>




More information about the Python-list mailing list