subplot(arg1, arg2, arg3) arg1: 在垂直方向同时画几张图arg2: 在水平方向同时画几张图arg3: 当前命令修改的是第几张图 t = np.arange(0,5,0.1) y1 = np.sin(2*np.pi*t) y2 = np.sin(2*np.pi*t) plt.subplot(211) plt.plot(t,y1,\'b-.\') plt.subplot(212) plt.plot(t,y2,\'r--\') plt.show() 相关文章: 2021-11-14 2021-11-02 2021-11-23 2021-10-18 2021-11-28 2021-12-28 2021-09-30 2021-09-21