通过fig.delaxes方法,将axes坐标参数传入即可删除对应坐标的子图
fig, axes = plt.subplots(3, 4)
index = 0
for i in range(3):
for j in range(4):
sns.histplot(norm_data.iloc[:, index], kde=True, color='k', bins=30, ax=axes[i][j])
index += 1
fig.delaxes(axes[2][3])