import matplotlib import matplotlib.pyplot as plt import csv matplotlib.use('Agg') axe_x = [] axe_y = [] builds_iterator = 1 with open('srr.txt','r') as file: plots = csv.reader(file) for row in plots: y.append(float(row[0])) x.append(int(i)) i+=1 plt.plot(x,y) plt.ylabel('Percentage SRR') plt.xlabel('Build') plt.title('SRR over several builds') plt.legend() plt.savefig('srr_over_several_builds.png')