how to normalize y axis in histogram using matplotlib code example Example: plt normalized histogram plt.hist(data, density=True)