This commit is contained in:
alicja.m.musial 2020-04-03 20:43:48 +02:00
parent d80de411bf
commit 45c382b3a3

View File

@ -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)