I am getting an error from the 'hist' function. It occurs when running the 'histogram_demo.py' example from http://matplotlib.sourceforge.net/. I'm using matplotlib version 0.87.4 and Numeric 24.2. Has anyone had this problem? Thanks.
Steve
# histogram_demo.py
>>> from pylab import *
>>>
>>> mu, sigma = 100, 15
>>> x = mu + sigma*randn(10000)
>>>
>>> # the histogram of the data
... n, bins, patches = hist(x, 50, normed=1)
Traceback (most recent call last):
File "<stdin>", line 2, in ?
File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line 1851, in hist
ret = gca().hist(*args, **kwargs)
File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 4078, in hist
patches = self.bar(bins, n, width=width, bottom=bottom, align=align)
File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 2481, in bar
yerr = asarray([yerr]*nbars, Float) # Float converts Nones to NANs
File "/usr/lib/python2.4/site-packages/Numeric/Numeric.py", line 134, in asarray
return multiarray.array(a, typecode, copy=0, savespace=savespace)
TypeError: a float is required