Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. 0.00 -10.742
  2. 1.00 -17.75391
  3. 4.00 -19.62891
  4. 20.00 -20.7641
  5. 23.00 -34.2300
  6. 50.00 -50.000
  7. 65.88 -22.5000
  8. 78.00 -30.000
  9. 86.00 -37.7900
  10. 90.00 -45.00000
  11.  
  12. 0.00 -10.742
  13. 1.00 -17.75391
  14. 4.00 -19.62891
  15. 20.00 -20.7641
  16. 23.00 -34.2300
  17. 50.00 -50.000
  18.  
  19. 65.88 -22.5000
  20. 78.00 -30.000
  21. 86.00 -37.7900
  22. 90.00 -45.00000
  23.  
  24. import matplotlib.pyplot as plt
  25. import sys
  26. import numpy as np
  27. from matplotlib import style
  28. fileName=input("Enter Input File Name: ")
  29. f1=open(fileName,'r')
  30. style.use('ggplot')
  31. x1,y1=np.loadtxt(fileName,unpack=True, usecols=(0,1));
  32. plt.plot(x1,y1,'r')
  33. plt.plot
  34. plt.title('example1')
  35. plt.xlabel('Time')
  36. plt.ylabel('Values')
  37. plt.grid(True,color='k')
  38. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement