Python Seaborn RegPlot 部分透视 (alpha)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33005872/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Seaborn RegPlot Partially See Through (alpha)
提问by qwertylpc
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.
使用 seaborn barplot 时,我可以指定一个 alpha,它使条形半透明。然而,当我用 Seaborn regplot 尝试这个时,我收到一个错误,说这是一个意外的论点。
I read the documentation online and didn't find much, could someone point me in the right direction...
我在线阅读了文档并没有找到太多内容,有人可以指出我正确的方向吗...
采纳答案by iayork
Use the scatter_kws argument. For example:
使用 scatter_kws 参数。例如:
ax = sb.regplot(x="total_bill",
y="tip",
data=tips,
scatter_kws={'alpha':0.3})
回答by MJeremy
This helps set size of all fontssns.set(font_scale=1.5)
这有助于设置所有字体的大小sns.set(font_scale=1.5)