Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing the size of seaborn pairplot markers

Tags:

python

seaborn

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

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:

enter image description here

The code I'm using to plot is:

sns.pairplot(df, diag_kind='kde')
sns.plt.show()
like image 522
Danowsky Avatar asked Feb 11 '17 21:02

Danowsky


People also ask

How do you change marker size in Seaborn?

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.

What is Pairplot in Seaborn?

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.

Why do we use Pairplot?

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!


1 Answers

Adding this should solve the issue - just worked for me

plot_kws={"s": 3}
like image 78
jjrr Avatar answered Sep 20 '22 14:09

jjrr