Advertisement
khaiwen1111

chap 3

Oct 24th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3. x=np.arange(-np.pi,np.pi,0.1)
  4. y1=np.sin(x)
  5. y2=2*np.sin(x)
  6. y3=np.sin(3*x)
  7.  
  8. plt.plot(x,y1,x,y2,x,y3)
  9. plt.xlabel("x")
  10. plt.ylabel("y")
  11. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement