Changing the size of seaborn pairplot markers

邮差的信 提交于 2020-06-22 11:24:28

问题


I'm trying to plot a seaborn.pairplot with small dots like this one:

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()

回答1:


Adding this should solve the issue - just worked for me

plot_kws={"s": 3}



回答2:


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. For example you can do plot_kws = {"s":1}.



来源:https://stackoverflow.com/questions/42181317/changing-the-size-of-seaborn-pairplot-markers

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!