I've recently gotten into plotly and am absolutely loving it, so am trying to use it in each project I do.
With matplotlib I can plot a line plot and a scatter plot on the same graph using the code below.
plt.figure(figsize = (20,5))
plt.scatter(x, y)
plt.plot(x, y_pred, color = "r")
plt.show()
Using the trendline parameter in the scatter function inside plotly.express I can plot a line of best fit through the scattered points, but I don't want that as I am trying to demonstrate how to calculate that line.
Thanks for the help in advance!
