21 lines
378 B
Python
21 lines
378 B
Python
import matplotlib.pyplot as plt
|
|
import csv
|
|
|
|
x = []
|
|
y = []
|
|
i = 0
|
|
|
|
with open('averagesrr.txt','r') as csvfile:
|
|
plots = csv.reader(csvfile, delimiter=' ')
|
|
for row in plots:
|
|
x.append(round(row[0], 2))
|
|
y.append(i)
|
|
i=i+1
|
|
|
|
plt.plot(x,y, label='SRR')
|
|
plt.xlabel('SRR')
|
|
plt.ylabel('Numer')
|
|
plt.title('Wykres średni SRR')
|
|
plt.legend()
|
|
plt.savefig('plotsrr.png')
|