[Numpy-discussion] numpy histogram data
Keith Sloan
keith at sloan-home.co.uk
Mon Jun 7 14:56:09 EDT 2021
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 I can get centers with
centers = 0.5 * (bins[1:] + bins[:-1]
As you advised
But unclear how I would get their heights and why counts has 5 arrays ?
--
Sent from: http://numpy-discussion.10968.n7.nabble.com/
More information about the NumPy-Discussion
mailing list