How to change the point size for regplot(), seaborn’s scatter plot function (python)

To do this you can feed the regplot() function the scatter_kws arg like so:

import seaborn as sns
tips = sns.load_dataset('tips')
sns.regplot(x='total_bill', y='tip', data=tips,
            marker="o", color="red", scatter_kws={'s':2})

small points

sns.regplot(x='total_bill', y='tip', data=tips,
            marker="o", color="red", scatter_kws={'s':20})

big points

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)