【发布时间】:2023-03-12 05:23:01
【问题描述】:
将以下内容想象为形状为 (n,1) 的图形中的一个子图:
ax0 = plt.subplot2grid((6,1), (0,0), rowspan=1)
ax1 = plt.subplot2grid((6,1), (1,0), sharex=ax1, rowspan=4)
ax2 = plt.subplot2grid((6,1), (5,0), sharex=ax1, rowspan=1)
(subplot2grid 的排列可能比这更复杂。)
我想在一个图中绘制 n 个这些。
我怎样才能做到这一点?
【问题讨论】:
标签: python matplotlib subplot