From fc24b19266bf5fe6ba97ba4d08c7b64279b33f83 Mon Sep 17 00:00:00 2001 From: s452111 Date: Wed, 22 Apr 2020 17:45:43 +0200 Subject: [PATCH] update dockerfile --- draw_plot_srr.py | 12 ++++++------ draw_plot_wer.py | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/draw_plot_srr.py b/draw_plot_srr.py index 3b361fe..15c0904 100644 --- a/draw_plot_srr.py +++ b/draw_plot_srr.py @@ -1,20 +1,20 @@ import matplotlib +matplotlib.use('Agg') import matplotlib.pyplot as plt import csv -matplotlib.use('Agg') axe_x = [] axe_y = [] -builds_iterator = 1 +it = 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 + axe_y.append(float(row[0])) + axe_x.append(int(it)) + it+=1 -plt.plot(x,y) +plt.plot(axe_x,axe_y) plt.ylabel('Percentage SRR') plt.xlabel('Build') plt.title('SRR over several builds') diff --git a/draw_plot_wer.py b/draw_plot_wer.py index e881847..8a339c5 100644 --- a/draw_plot_wer.py +++ b/draw_plot_wer.py @@ -1,20 +1,20 @@ import matplotlib +matplotlib.use('Agg') import matplotlib.pyplot as plt import csv -matplotlib.use('Agg') axe_x = [] axe_y = [] -builds_iterator = 1 +it = 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 + axe_y.append(float(row[0])) + axe_x.append(int(it)) + it+=1 -plt.plot(x,y) +plt.plot(axe_x,axe_y) plt.ylabel('Percentage Word Error Rate') plt.xlabel('Build') plt.title('WER over several builds')