Is there a way to fit a graph parts by parts like the above?
I would like to fit the first part/trend with one function (red curve), and fit the second trend with another function (blue curve). My ultimate goal is fit all the parts of this cyclic graph.