hist bins code example
Example 1: plt normalized histogram
plt.hist(data, density=True)
Example 2: python matpotlib histplot
import matplotlib.pyplot as plt
plt.hist(x) #x is a array of numbers
plt.show()
plt.hist(data, density=True)
import matplotlib.pyplot as plt
plt.hist(x) #x is a array of numbers
plt.show()