How to plot the sum of two animated sine waves in python?

后端 未结 0 346
有刺的猬
有刺的猬 2020-11-28 02:12

Code:-

import numpy as np
x = np.arange(0,10,0.01)
x2 = np.arange(0,20,0.02)
sin1 = np.sin(x)
sin2 = np.sin(x2)
sin3 = sin1+sin2
plt.plot(x,sin3)
plt.show()
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题