From 4085f908933719ab3c4a0e26318ea4446c69e1ac Mon Sep 17 00:00:00 2001 From: massta Date: Sun, 5 Apr 2020 19:56:33 +0200 Subject: [PATCH] zad4 test15 --- plotsrr.py | 4 ++-- plotwer.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plotsrr.py b/plotsrr.py index e19ffcf..e2a49c2 100644 --- a/plotsrr.py +++ b/plotsrr.py @@ -8,8 +8,8 @@ i = 0 with open('averagesrr.txt','r') as csvfile: plots = csv.reader(csvfile, delimiter=' ') for row in plots: - x.append(round(row[0], 2)) - y.append(i) + x.append(float(round(row[0], 2))) + y.append(int(i)) i=i+1 plt.plot(x,y, label='SRR') diff --git a/plotwer.py b/plotwer.py index 3680160..23155c9 100644 --- a/plotwer.py +++ b/plotwer.py @@ -8,8 +8,8 @@ i = 0 with open('averagewer.txt','r') as csvfile: plots = csv.reader(csvfile, delimiter=' ') for row in plots: - x.append(round(row[0], 2)) - y.append(i) + x.append(float(round(row[0], 2))) + y.append(int(i)) i=i+1 plt.plot(x,y, label='WER')