Hi.
I would like to fit a scatter plot within a certain x axis range limits. In particular I want a gaussian fit and retrieve the fit parameters.
Looking at this page https://plotly.com/python/linear-fits/ I could not find a trivial solution.
The best I could manage was a rolling average over the entire range (since in statsmodel I could not find a simple gaussian fit).
fig = px.scatter(x=np.arange(1,1025,1), y=list_data2[iFile], render_mode="SVG", trendline="rolling", trendline_options=dict(window=5))
I hope someone can help.
Thank you