24 lines
399 B
Python
24 lines
399 B
Python
import matplotlib
|
|
matplotlib.use('Agg')
|
|
|
|
import matplotlib.pyplot as plt
|
|
import csv
|
|
|
|
x = []
|
|
y = []
|
|
i = 1
|
|
|
|
with open('averagesrr.txt','r') as file:
|
|
plots = csv.reader(file)
|
|
for row in plots:
|
|
y.append(float(row[0]))
|
|
x.append(int(i))
|
|
i=i+1
|
|
|
|
plt.plot(x,y)
|
|
plt.ylabel('SRR (%)')
|
|
plt.xlabel('Build number')
|
|
plt.title('Plot of average SRR')
|
|
plt.legend()
|
|
plt.savefig('plotsrr.png')
|