matplotlibrc numerix Numeric problem

Hi,

I'm unable to use matplotlib when I have the following line in my matlabplotrc file: numerix Numeric.

There is no problem when I use: numerix numpy

Here's my setup: Mac G5 w/OS X 10.4.8, using MacPython 2.4, numpy.__version__ is 1.0, matplotlib.__version__ 0.87.7 and Numeric.__version__ 24.2

I append below the errors I get when trying to use numerix Numeric via python and ipython.

Is this a bug?

--b

VIA IPYTHON:

···

====================
6 % ipython -pylab
Python 2.4.4 (#1, Oct 18 2006, 10:34:39)
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.

   Welcome to pylab, a matplotlib-based Python environment.
   For more information, type 'help(pylab)'.

In [1]: plot([1,2,3])
---------------------------------------------------------------------------
exceptions.TypeError Traceback (most recent call last)

/Users/bthom/belinda/mills/aicourse/tic-tac-toe/<ipython console>

/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py in plot(*args, **kwargs)
    2025 hold(h)
    2026 try:
-> 2027 ret = gca().plot(*args, **kwargs)
    2028 draw_if_interactive()
    2029 except:

/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py in plot(self, *args, **kwargs)
    2129 lines = [line for line in lines] # consume the generator
    2130
-> 2131 self.autoscale_view(scalex=scalex, scaley=scaley)
    2132 return lines
    2133

/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py in autoscale_view(self, tight, scalex, scaley)
     983 if xl[1] < xl[0]:
     984 XL = XL[::-1]
--> 985 self.set_xlim(XL)
     986 if scaley:
     987 yl = self.get_ylim()

/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py in set_xlim(self, xmin, xmax, emit)
    1225 xmax += 1e-38
    1226
-> 1227 self.viewLim.intervalx().set_bounds(xmin, xmax)
    1228 if emit: self._send_xlim_event()
    1229 return xmin, xmax

TypeError: only length-1 arrays can be converted to Python scalars.
.pdbrc.py started
.pdbrc.py finished
> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py(1227)set_xlim()
    1226
-> 1227 self.viewLim.intervalx().set_bounds(xmin, xmax)
    1228 if emit: self._send_xlim_event()

VIA PYTHON:

3 % python
Python 2.4.4 (#1, Oct 18 2006, 10:34:39)
[GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
history mechanism set up
>>> import pylab
>>> pylab.plot([1,2,3])
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/pylab.py", line 2027, in plot
     ret = gca().plot(*args, **kwargs)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py", line 2131, in plot
     self.autoscale_view(scalex=scalex, scaley=scaley)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py", line 985, in autoscale_view
     self.set_xlim(XL)
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/matplotlib/axes.py", line 1227, in set_xlim
     self.viewLim.intervalx().set_bounds(xmin, xmax)
TypeError: only length-1 arrays can be converted to Python scalars.