It's a simple plot but the line of best fit code is something that I can't get to work. Please can someone help tell me what is wrong with it. My code:
x=[93850,92115,90400,88707]
y=[49,48,47,46]
def curve(x,m,c):
y_=(m*x)+c
return y_
popt,pcov=curve_fit(curve,x,ydata=y,p0=[1.02,0])
plt.plot(x,curve(x,1,0))
plt.plot(x,m*x+c)
plt.plot(x,y)

