I have created some pairplots but cannot seem to increase the area of the plot.The code and the output are shown below for reference.
Please find below a snapshot of the data.
Can someone please help me with this.

-
quite surprisingly it is not doing anything.The area is not changing at allShuvayan Das– Shuvayan Das2017-07-12 15:18:38 +00:00Commented Jul 12, 2017 at 15:18
-
If you can't share your own data, you need to generate random data or use one of the example datasets that are provided for exactly this purpose.mwaskom– mwaskom2017-07-12 15:23:50 +00:00Commented Jul 12, 2017 at 15:23
Add a comment
|
2 Answers
You have to specify the size in the pairplot (or other plot) command.
plt.figure()
sns.pairplot(attrition_df, size=2.5, aspect=1)
size equals the height of the facet (subplot) in inches, and the width in inches equals aspect*size
Comments
pairplot has the option size, which controls the size, in inches, of each facet.
From the pairplot docs:
size : scalar, optional
Height (in inches) of each facet.
Altering this will control the size of the subplots, and also the overall figure size, e.g.
sns.pairplot(attrition_df, size=3, ...)