Re: [Numpy-discussion] numpy histogram data

2021-06-08 Thread Doug Davis
Keith Sloan writes: > Thanks > > Okay trying to understand the data being returned. > I have > > counts, bins = np.histogram(RedEllipticalMasses['Z_1'],bins=80) > > If I print lengths I get > RedEllipticalMasses is 2514 > bins = 81 > and counts is 5 > ( It is 5 Arrays each of length 80) > > Okay

Re: [Numpy-discussion] numpy histogram data

2021-06-07 Thread Doug Davis
Keith Sloan writes: > Thanks > > Not sure where I get centers & edges from Every time you call np.histogram the second return will be an array of edges; so you define centers anywhere after your first np.histogram call, e.g. with your bins1 variable. (I can't tell if this is exactly the case, bu

Re: [Numpy-discussion] numpy histogram data

2021-06-06 Thread Doug Davis
Resending after subscribing to the list since original reply was rejected, that's what I get for reading the mailing list from gmane instead of actually subscribing :) Keith Sloan writes: > Okay I have some data which I have created a scatter plot >