plotting histograms whose bar heights sum to 1weights = np.ones_like(myarray)/len(myarray)plt.hist(myarray, weights=weights)http://stackoverflow.com/questions/3866520/plotting-histograms-whose-bar-heights-sum-to-1-in-matplotlib