yaos

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
猜你喜欢
  • 2021-09-04
  • 2021-08-01
  • 2021-11-08
  • 2021-11-13
  • 2021-07-26
  • 2021-10-29
  • 2021-12-24
相关资源
相似解决方案