Seaborn RegPlot Partially See Through (alpha)

qwertylpc picture qwertylpc · Oct 8, 2015 · Viewed 22.6k times · Source

When using seaborn barplot I can specify an alpha for which it makes the bars semi-translucent. However, when I try this with Seaborn regplot I get an error saying this is an unexpected argument.

I read the documentation online and didn't find much, could someone point me in the right direction...

Answer

iayork picture iayork · Oct 8, 2015

Use the scatter_kws argument. For example:

ax = sb.regplot(x="total_bill", 
                y="tip", 
                data=tips, 
                scatter_kws={'alpha':0.3})