def newfig(width):
plt.clf()
fig = plt.figure(figsize=figsize(width))
gs = gridspec.GridSpec(2, 2,
width_ratios=[1,4],
height_ratios=[4,1]
)
ax1 = plt.subplot(gs[0])
ax2 = plt.subplot(gs[1])
ax3 = plt.subplot(gs[3])
return fig, (ax1, ax2, ax3)
评论列表
文章目录