1

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. enter image description here Can someone please help me with this. enter image description here

2
  • quite surprisingly it is not doing anything.The area is not changing at all Commented 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. Commented Jul 12, 2017 at 15:23

2 Answers 2

2

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

Sign up to request clarification or add additional context in comments.

Comments

2

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, ...)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.