Hi there. Has anyone tried using pylab with python24 and numarray (1.4.1)?
The following should obviously plot a line 0-10
···
#--------
import numarray, pylab
pylab.plot(numarray.arange(10))
pylab.show()
#--------
It does on my system with old python2.3.3 (Numeric or numarray) and with python2.4.1 using Numeric. With the specific combo of py2.4.1 and numarray it gives a flat line of zeros. The problem is the same on all versions of pylab i've tried including the latest 0.85
anyone got a fix?
Jon
--
Jon Peirce
Nottingham University
+44 (0)115 8467176 (tel)
+44 (0)115 9515324 (fax)
http://www.peirce.org.uk/
This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
Jon Peirce wrote:
Hi there. Has anyone tried using pylab with python24 and numarray (1.4.1)?
The following should obviously plot a line 0-10
#--------
import numarray, pylab
pylab.plot(numarray.arange(10))
pylab.show()
#--------
It does on my system with old python2.3.3 (Numeric or numarray) and with python2.4.1 using Numeric. With the specific combo of py2.4.1 and numarray it gives a flat line of zeros. The problem is the same on all versions of pylab i've tried including the latest 0.85
anyone got a fix?
I just tried this with numarray-1.4.1 and CVS, Python-2.4.1 and Python-2.3.3, and pylab CVS, all on Fedora Core 4 on x86_64 and it worked as expected. Sometimes a quick and dirty fix is to completely wipe your existing installations from site-packages and then carefully rebuild and reinstall. By "carefully rebuilding" I mean deleting any build directories you have lying around. I realize it is shot-gunning... sometimes that's enough.
Regards,
Todd