📅  最后修改于: 2022-03-11 14:47:21.645000             🧑  作者: Mango
fig, (ax1, ax2) = plt.subplots(2)
fig.suptitle('Vertically stacked subplots')
ax1.plot(x, y)
ax2.plot(x, -y)
#or
fig, (ax1, ax2) = plt.subplots(1,2) #in lines