版本:Jupyter NoteBook 5.5.0 python 3.6.5
例子:
fig, axes = plt.subplots(nrows = 19, ncols = 2, figsize = (40, 200))
for ax, column in zip(axes.flatten(), x_train.columns):
sns.distplot(x_train[column].dropna(), ax = ax, color = 'darkred')
ax.set_title(column, fontsize = 43)
ax.tick_params(axis = 'both', which = 'major', labelsize = 35)
ax.tick_params(axis = 'both', which = 'minor', labelsize = 35)
ax.set_xlabel('')
fig.tight_layout(rect = [0, 0.03, 1, 0.95])