plt.hist usando contenedores

counts, bins = np.histogram(data)
plt.hist(bins[:-1], bins, weights=counts)
Perro Fiel