Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- """
- Created on Tue Oct 23 21:09:57 2018
- @author: mrsElectricity
- """
- import matplotlib.pyplot as plt
- x = [2230, 2308, 2403, 2502, 2554, 2606, 2706, 2748, 2345, 2446]
- y = [0.79, 1.4, 2.99, 4.73, 3.42, 2.29, 1.24, 0.98, 1.87, 4.19]
- for i in range(0, 11):
- for j in range(0, 11):
- if j < j+1:
- buf = x[j]
- x[j] = x[j+1]
- x[j+1] = buf
- buf = y[i]
- y[i] = y[i+1]
- y[i+1] = buf
- line = plt.plot(x, y)
- # Задаем интервалы значений по осям X и Y
- plt.axis([2100, 2800, 0.001, 6.0])
- plt.grid()
- plt.savefig('spirit.png', format = 'png')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement