Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. """
  3. Created on Tue Oct 23 21:09:57 2018
  4.  
  5. @author: mrsElectricity
  6. """
  7. import matplotlib.pyplot as plt
  8.  
  9. x = [2230, 2308, 2403, 2502, 2554, 2606, 2706, 2748, 2345, 2446]
  10. y = [0.79, 1.4, 2.99, 4.73, 3.42, 2.29, 1.24, 0.98, 1.87, 4.19]
  11.  
  12. for i in range(0, 11):
  13. for j in range(0, 11):
  14. if j < j+1:
  15.  
  16. buf = x[j]
  17. x[j] = x[j+1]
  18. x[j+1] = buf
  19.  
  20. buf = y[i]
  21. y[i] = y[i+1]
  22. y[i+1] = buf
  23.  
  24.  
  25. line = plt.plot(x, y)
  26.  
  27. # Задаем интервалы значений по осям X и Y
  28.  
  29. plt.axis([2100, 2800, 0.001, 6.0])
  30.  
  31. plt.grid()
  32. plt.savefig('spirit.png', format = 'png')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement