Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Seaborn RegPlot Partially See Through (alpha)

Tags:

python

seaborn

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...

like image 977
qwertylpc Avatar asked Oct 08 '15 03:10

qwertylpc


People also ask

What is the difference between Lmplot and Regplot?

While regplot() always shows a single relationship, lmplot() combines regplot() with FacetGrid to provide an easy interface to show a linear regression on “faceted” plots that allow you to explore interactions with up to three additional categorical variables.

What is the use of Seaborn Regplot () method?

regplot() : This method is used to plot data and a linear regression model fit. There are a number of mutually exclusive options for estimating the regression model.

What is confidence interval in Regplot?

Similar to lineplot(), the regplot() function uses a 95% confidence interval by default but can specify the confidence level to use with the ci command.


1 Answers

Use the scatter_kws argument. For example:

ax = sb.regplot(x="total_bill",                  y="tip",                  data=tips,                  scatter_kws={'alpha':0.3}) 
like image 74
iayork Avatar answered Sep 21 '22 09:09

iayork