📜  子图 matplotlib - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:30.096000             🧑  作者: Mango

代码示例5
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