Guest User

Untitled

a guest
Nov 22nd, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. import matplotlib.pyplot as plt
  2. import numpy as np
  3.  
  4. t = np.arange(0.0, 2.0, 0.01)
  5. s = 1 + np.sin(2 * np.pi * t)
  6. plt.figure()
  7. plt.plot(t, s)
  8.  
  9. plt.xlabel('time (s)')
  10. plt.ylabel('voltage (mV)')
  11. plt.title('About as simple as it gets, folks')
  12. plt.grid(True)
  13. plt.show()
  14.  
  15. plt.plot(t, s)
  16.  
  17. plt.xlabel('time (s)')
  18. plt.ylabel('voltage (mV)')
  19. plt.title('About as simple as it gets, folks')
  20. plt.grid(True)
  21. plt.show()
Add Comment
Please, Sign In to add comment