Python curve fitting on a barplot
问题 How do I fit a curve on a barplot? I have an equation, the diffusion equation, which has some unknown parameters, these parameters make the curve larger, taller, etc. On the other hand I have a barplot coming from a simulation. I would like to fit the curve on the barplot, and find the best parameters for the curve, how can I do that? This is what I obtained by 'manual fitting', so basically I changed manually all the parameters for hours. However is there a way to do this with python? To