From 45c382b3a3e367267cbe4b7c1716c03252cd4f56 Mon Sep 17 00:00:00 2001 From: "alicja.m.musial" Date: Fri, 3 Apr 2020 20:43:48 +0200 Subject: [PATCH] plot 14 --- plotCreator.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plotCreator.py b/plotCreator.py index 01db79a..d05e91b 100644 --- a/plotCreator.py +++ b/plotCreator.py @@ -3,14 +3,16 @@ import numpy as np def readFile(file): with open(file, 'r') as inFile: + data = inFile.read() countL = 0 for line in inFile: countL += 1 - y2 = np.loadtxt(file) + y2 = [[0] for row in data] return countL, y2; def createplotWER(): - + x = [] + y = [] countL, y2 = readFile('werForPlot.txt') # Data for plotting x = np.arange(1, countL, 1) @@ -28,7 +30,8 @@ def createplotWER(): plt.show() def createplotSRR(): - + x = [] + y = [] countL, y2 = readFile('srrForPlot.txt') # Data for plotting x = np.arange(1, countL)