High_Light

paketi

Feb 14th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. import numpy
  2. from numpy import arange
  3. from matplotlib import pyplot as plt
  4. #print (range(1,11))
  5. #print (range(10,0,-1))
  6. A=1.5
  7. W=2
  8. x=(arange(0,2*numpy.pi,0.01))
  9. f=0.5
  10. for i, W in enumerate(arange(1.0,10.0,0.1)):
  11.     y=A* numpy.sin(W*x+f)
  12.     plt.plot(x,y)
  13.     plt.ylim()
  14.  
  15.     plt.savefig("/home/user/123/test" + str (i) + ".png")
  16.     plt.clf()
  17.     plt.cla()
  18. numpy.exp
Advertisement
Add Comment
Please, Sign In to add comment