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