[英]seaborn how to set style and font size
I am trying to change both style and font size like this我正在尝试像这样更改样式和字体大小
sns.set_style("whitegrid")
sns.set(font_scale=1.5)
But it seems that both are mutually exclusive.但似乎两者是相互排斥的。 I can use only one of the lines at a time.
我一次只能使用其中的一行。 How to make both changes apparent?
如何使这两种变化显而易见?
Put them both in the same seaborn.set
command:将它们放在同一个
seaborn.set
命令中:
sns.set(style="whitegrid", font_scale=1.5)
As per the docs, seaborn.set
is an alias for seaborn.set_theme
按照该文档,
seaborn.set
是一个别名seaborn.set_theme
seaborn.set_theme(style="whitegrid", font_scale=1.5)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.