如何格式化seaborn/matplotlib distplots

如何格式化seaborn/matplotlib distplots,matplotlib,plot,seaborn,Matplotlib,Plot,Seaborn,我正在努力使下面的图像看起来更好: 这是我的密码: fig, ax = plt.subplots(3) sns.distplot(list1, ax=ax[0]) sns.distplot(list2,ax=ax[1]) sns.distplot(list3,ax=ax[2]) fig.tight_layout() fig.show() 我想让发行版看起来更大(用于演示)。对于其他专业人士来说,它们看起来很狭窄,很难阅读。 并为3个发行版中的每个发行版添加标题 谢谢 使用figsize手动设

我正在努力使下面的图像看起来更好:

这是我的密码:

fig, ax = plt.subplots(3)
sns.distplot(list1, ax=ax[0])
sns.distplot(list2,ax=ax[1])
sns.distplot(list3,ax=ax[2])
fig.tight_layout()
fig.show()
我想让发行版看起来更大(用于演示)。对于其他专业人士来说,它们看起来很狭窄,很难阅读。 并为3个发行版中的每个发行版添加标题


谢谢

使用figsize手动设置子批次大小

fig, ax = plt.subplots(nrows=2, ncols=2, figsize=(6,5))

sns.distplot(a, ax=ax[0][0])
ax[0][0].set_title('a')

sns.distplot(b,ax=ax[0][1])
ax[0][1].set_title('b')

sns.distplot(c,ax=ax[1][0])
ax[1][0].set_title('c')

fig.suptitle('distplots')
fig.tight_layout()
fig.show()  
你应该得到这样的东西

如果不需要第四个空子批,只需在代码中添加fizsize()和合适的值