I have the plot below and I want to fit it with 2 lines. Using python I manage to fit the upper part:
def func(x,a,b):
x=np.array(x)
return a*(x**b)
popt,pcov=curve_fit(func,up_x,up_y)
And I want to fit the lower part with another line, but I want the line to pass through the point where the red one stars, so I can have a continuous function. So my question is how can I use curve_fit by giving a point the function has to pass through, but leaving the slope of the line to be calculated by python? (Or any other python package able to do it)