Re: [Matplotlib-users] hist doesn't like 2d arrays

2011-02-20 Thread K . -Michael Aye
On 2011-02-18 07:32:48 +0100, Robert Abiad said: > Dear Folks, > > I'm finding that hist has problems computing on 2d arrays. > > import numpy > import pylab > mu, sigma = 2, 0.5 > v = numpy.random.normal(mu,sigma,16) > pylab.hist(v, bins=1000, normed=1) > > Th

[Matplotlib-users] hist doesn't like 2d arrays

2011-02-17 Thread Robert Abiad
Dear Folks, I'm finding that hist has problems computing on 2d arrays. import numpy import pylab mu, sigma = 2, 0.5 v = numpy.random.normal(mu,sigma,16) pylab.hist(v, bins=1000, normed=1) This works without any problems. But if you try this: w=v.reshape(40