[英]Changing the size of seaborn pairplot markers
I'm trying to plot a seaborn.pairplot with small dots like this one:我正在尝试用像这样的小点来绘制 seaborn.pairplot:
But I get one with the markers much bigger and I can't find how to change their size in the documentation.但是我得到了一个标记更大的标记,而且我在文档中找不到如何更改它们的大小。 My pairplot looks like this:
我的配对图如下所示:
The code I'm using to plot is:我用来绘制的代码是:
sns.pairplot(df, diag_kind='kde')
sns.plt.show()
添加这个应该可以解决问题 - 对我有用
plot_kws={"s": 3}
Just to clarify the above answer in that plot_kws = {"s":3} is a dictionary with size ("s") set to the value of 3. You can increase or decrease the value as you like.只是为了澄清上面的答案, plot_kws = {"s":3} 是一个大小 ("s") 设置为 3 的字典。您可以根据需要增加或减少该值。 For example you can do plot_kws = {"s":1}.
例如,您可以执行 plot_kws = {"s":1}。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.