I want to plot a linear regression model fit for my dataset using Seaborn.
As this data set has different depths in water column (Bottom, Middle and Top), I wanted my plot to have 3 different colors, but the linear regression would be to the overall dataset. I divided this dataset to plot them separately just like the following:
fig, axarr = plt.subplots(3, sharex = True)
axarr[0].scatter(averageOBSB_3min,PumpBotSSC,c='r', label='Bottom')
axarr[0].scatter(averageOBSM_3min,PumpMidSSC,c='g', label='Middle')
axarr[0].scatter(averageOBST_3min,PumpTopSSC,c='b', label='Top')
But that doesn't work for Seaborn, obviously.
My question is: how can I have different colors on the plot, but do the regression for the hole dataset?