I am trying to make to fit a curve to the values in a matplotlib generated histogram:
n, bins, patches = plt.hist(myData)
Where \"plt\" sta
One way of doing it is to plot the PDF or the PMF of the curve with the same parameters as your histogram. For example, if you think you want to check how your histogram fits the normal distribution, you can plot the PDF of the Normal with the same mean & variance as your histogram. Create a random normal with the numpy.random.normal() function and plot its PDF. The way to do that is explained on the Numpy official page: https://numpy.org/doc/stable/reference/random/generated/numpy.random.normal.html