Hello,
I've just come across matplotlib and I'm very impressed. It looks very useful.
I just installed on a WinXP machine:
enthon-python2.4-1.0.0.beta3.exe
matplotlib-0.87.4.win32-py2.4.exe.
The install went fine. I also put the default matplotlibrc file into
my %HOME%\.matplotlib.
I ran ipython from the "Start" menu. Note that this runs ipython
without the -pylab argument.
I started to try the first example and had a problem with "from pylab
import * ". Also this failure occured using the "ordinary" python
shell. The output from ipython is below.
I'm afraid I mixed and matched inappropriately withe the enthought 2.4
beta 3 and matplotlibe 0.87.4 py2.4 pairing.
Any thoughts?
Thanks for your help.
Brian
--------------------ipython shell output----------------------------------
···
**********************************************************************
Python 2.4.3 - Enthought Edition 1.0.0.beta3 (#69, Jul 6 2006, 11:38:02) [MSC v
.1310 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 0.7.2 -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: from pylab import *
C:\Python24\lib\site-packages\matplotlib\font_manager.py:453: UserWarning: Could
not open font file C:\WINDOWS\Fonts\ORLANDO.TTF
warnings.warn("Could not open font file %s"%fpath)
---------------------------------------------------------------------------
exceptions.RuntimeError Traceback (most recent call
last)
C:\Python24\<ipython console>
C:\Python24\Lib\site-packages\pylab.py
----> 1 from matplotlib.pylab import *
C:\Python24\Lib\site-packages\matplotlib\pylab.py
198 import mlab #so I can override hist, psd, etc...
199
--> 200 from axes import Axes, PolarAxes
201 import backends
202 from cbook import flatten, is_string_like, exception_to_str, popd, \
C:\Python24\Lib\site-packages\matplotlib\axes.py
21 import cm
22 from cm import ScalarMappable
---> 23 from contour import ContourSet
24 import _image
25 from ticker import AutoLocator, LogLocator, NullLocator
C:\Python24\Lib\site-packages\matplotlib\contour.py
16
17 from mlab import linspace, meshgrid
---> 18 import _contour
19 from cm import ScalarMappable
20 from cbook import iterable, is_string_like, flatten, enumerate, \
C:\Python24\Lib\site-packages\matplotlib\_contour.py
15 else: # Must be numpy
16 try:
---> 17 from matplotlib._ns_cntr import *
18 except ImportError:
19 numerix._import_fail_message("_contour", "_ns")
RuntimeError: module compiled against version 90709 of C-API but this version of
numpy is 90907
In [2]:
----------------------------------------------------------