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()
To set the size of markers, we can use the s parameter. This parameter can be used since seaborn is built on the matplotlib module. We can specify this argument in the scatterplot() function and set it to some value. Alternatively, we can control the size of the points based on some variables.
seaborn.pairplot()To plot multiple pairwise bivariate distributions in a dataset, you can use the pairplot() function. This shows the relationship for (n, 2) combination of variable in a DataFrame as a matrix of plots and the diagonal plots are the univariate plots.
A pairs plot allows us to see both distribution of single variables and relationships between two variables . Pair plots are a great method to identify trends for follow-up analysis and, fortunately, are easily implemented in Python!
Adding this should solve the issue - just worked for me
plot_kws={"s": 3}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With