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