📜  matplotlib 不同数量的子图 - Python 代码示例

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

代码示例1
plt.figure(figsize=(12, 6))
ax1 = plt.subplot(2,3,1)
ax2 = plt.subplot(2,3,2)
ax3 = plt.subplot(2,3,3)
ax4 = plt.subplot(2,1,2)
axes = [ax1, ax2, ax3, ax4]