import matplotlib import matplotlib.pyplot as plt import csv matplotlib.use('Agg') axe_x = [] axe_y = [] builds_iterator = 1 with open('wer.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('Percentage Word Error Rate') plt.xlabel('Build') plt.title('WER over several builds') plt.legend() plt.savefig('wer_over_several_builds.png')