Advertisement
Guest User

Untitled

a guest
Apr 26th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. __author__ = "Harry"
  2.  
  3. import matplotlib.pyplot as plot
  4. import math
  5.  
  6. amplitude = 1
  7. frequency = 1
  8. delay = 100
  9.  
  10. y = [math.sin(math.radians(e)) * amplitude for e in range(0, 360)] * frequency
  11. x = list(range(len(y)))
  12.  
  13. plot.plot(x, y)
  14. plot.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement