Relative Content

Tag Archive for pythonscipycurve-fittingscipy-optimize

Trying to fit a curve for the data function

To accurately fit a curve to my data using a fitting function, I need to follow a structured approach. The current fitting curve is incorrect, so how should I proceed to achieve a correct fit?
Here is my code:

Scipy curve_fit shifted to the top of the graph

For a project, I have to make a scatter plot and a best fit with errors for an excel file, only when I want to plot the best fit in the scatter plot it is moved to the top of the graph and it doesnt look quite right, I dont know why it does that:
I mounted the drive in a separate cell, the scatter plot is correct, only the graph of the best fit is shifted all we way to the top of the graph.