问题
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