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