Re: [Numpy-discussion] question about histogram2d

2008-05-29 Thread Darren Dale
Hi David, In that case, I suggest histogram2d could be improved with a brief comment in the docstring to indicate how the output is formatted. Cheers, Darren On Thursday 29 May 2008 8:21:58 pm David Huard wrote: > Hi Darren, > > If I remember correctly, the thinking under the current behavior i

Re: [Numpy-discussion] question about histogram2d

2008-05-29 Thread David Huard
Hi Darren, If I remember correctly, the thinking under the current behavior is that it preserves similarity of results with histogramdd, where the histogram is oriented in the numpy order (columns, rows). I thought that making histogram2d(x,y) return something different than histogramdd([x,y]) was

[Numpy-discussion] question about histogram2d

2008-05-29 Thread Darren Dale
I have a question about histogram2d. Say I do something like: import numpy from numpy import random import pylab x=random.rand(1000)-0.5 y=random.rand(1000)*10-5 xbins=numpy.linspace(-10,10,100) ybins=numpy.linspace(-10,10,100) h,x,y=numpy.histogram2d(x,y,bins=[xbins,ybins]) pylab.imshow(h,inte