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
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, eg
sns.pairplot(attrition_df, size=3, ...)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.