I just committed Daishi's patch to CVS, with Fernando's
> modification to catch the new scipy versus old scipy.
Seems there is a problem with "resize"
peds-pc311:~/python/projects/matplotlib/examples> python contour_demo.py --Numeric --verbose-helpful
matplotlib data path /usr/share/matplotlib
$HOME=/home/jdhunter
CONFIGDIR=/home/jdhunter/.matplotlib
loaded rc file /home/jdhunter/.matplotlib/matplotlibrc
matplotlib version 0.85.1.cvs
verbose.level helpful
interactive is False
platform is linux2
numerix Numeric 24.0b2
font search path ['/usr/share/matplotlib']
loaded ttfcache file /home/jdhunter/.matplotlib/ttffont.cache
backend GTKAgg version 2.6.1
Traceback (most recent call last):
File "contour_demo.py", line 29, in ?
clabel(CS, inline=1, fontsize=10)
File "/home/jdhunter/debs/matplotlib/usr//lib/python2.4/site-packages/matplotlib/pylab.py", line 1783, in clabel
ret = gca().clabel(*args, **kwargs)
File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 1264, in clabel
return CS.clabel(*args, **kwargs)
File "/usr/lib/python2.4/site-packages/matplotlib/contour.py", line 121, in clabel
self.labels(inline)
File "/usr/lib/python2.4/site-packages/matplotlib/contour.py", line 338, in labels
x,y, rotation, ind = self.locate_label(slc, lw)
File "/usr/lib/python2.4/site-packages/matplotlib/contour.py", line 291, in locate_label
XX = resize(array(linecontour)[:,0],(xsize, ysize))
File "/usr/lib/python2.4/site-packages/matplotlib/numerix/__init__.py", line 87, in resize
return a.resize(shape)
ValueError: resize only works on contiguous arrays
and for numarray
peds-pc311:~/python/projects/matplotlib/examples> python contour_demo.py --numarray --verbose-helpful
matplotlib data path /usr/share/matplotlib
$HOME=/home/jdhunter
CONFIGDIR=/home/jdhunter/.matplotlib
loaded rc file /home/jdhunter/.matplotlib/matplotlibrc
matplotlib version 0.85.1.cvs
verbose.level helpful
interactive is False
platform is linux2
numerix numarray 1.3.3
font search path ['/usr/share/matplotlib']
loaded ttfcache file /home/jdhunter/.matplotlib/ttffont.cache
backend GTKAgg version 2.6.1
Traceback (most recent call last):
File "contour_demo.py", line 29, in ?
clabel(CS, inline=1, fontsize=10)
File "/home/jdhunter/debs/matplotlib/usr//lib/python2.4/site-packages/matplotlib/pylab.py", line 1783, in clabel
ret = gca().clabel(*args, **kwargs)
File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 1264, in clabel
return CS.clabel(*args, **kwargs)
File "/usr/lib/python2.4/site-packages/matplotlib/contour.py", line 121, in clabel
self.labels(inline)
File "/usr/lib/python2.4/site-packages/matplotlib/contour.py", line 338, in labels
x,y, rotation, ind = self.locate_label(slc, lw)
File "/usr/lib/python2.4/site-packages/matplotlib/contour.py", line 291, in locate_label
XX = resize(array(linecontour)[:,0],(xsize, ysize))
File "/usr/lib/python2.4/site-packages/matplotlib/numerix/__init__.py", line 87, in resize
return a.resize(shape)
File "/home/jdhunter/debs/numarray/usr/lib/python2.4/site-packages/numarray/generic.py", line 891, in resize
self.ravel()
File "/home/jdhunter/debs/numarray/usr/lib/python2.4/site-packages/numarray/generic.py", line 922, in ravel
self.setshape((self.nelements(),))
File "/home/jdhunter/debs/numarray/usr/lib/python2.4/site-packages/numarray/generic.py", line 680, in setshape
raise TypeError("Can't reshape non-contiguous numarray")
TypeError: Can't reshape non-contiguous numarray
Ditto on finance_demo....
JDH