pylab.hist(data, normed=1). Normalization seems to work incorrect

See my other post for how to make the sum of all bins in a histogram equal to one:
https://stackoverflow.com/a/16399202/1542814

Copy & Paste:

weights = np.ones_like(myarray)/float(len(myarray))
plt.hist(myarray, weights=weights)

where myarray contains your data

Leave a Comment