【plt】subplot设置子图大小

仅记录

1. 问题描述:
想设置每个子图的大小

2. 实现代码:

fig, (axes1, axes2) = plt.subplots(2, 1, figsize=(100, 10))
axes1.plot(np.arange(time_length), np.zeros(time_length))
axes2.plot(np.arange(time_length), np.zeros(time_length))

3. 直接Ctrl+B看plt.subplot的注释讲解,比网上大多数讲的清楚

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章