wht = np.ones((len(data)))/float(len(data))
plt.figure()
plt.hist(data, bins=binsNum, weights=wht)
plt.show()