This commit is contained in:
alicja.m.musial 2020-04-03 20:13:08 +02:00
parent ff3ceac7be
commit 33598a0deb

View File

@ -7,14 +7,14 @@ def readFile(file):
for line in inFile:
countL += 1
y2 = np.genfromtxt(file)
return countL, y2
return countL, y2;
def createplotWER():
ans = readFile('wer.txt')
countL, y2 = readFile('wer.txt')
# Data for plotting
x = np.arange(1, ans.countL)
y = ans.y2
x = np.arange(1, countL)
y = y2
fig, ax = plt.subplots()
ax.plot(x, y)
@ -29,10 +29,10 @@ def createplotWER():
def createplotSRR():
ans = readFile('srr.txt')
countL, y2 = readFile('srr.txt')
# Data for plotting
x = np.arange(1, ans.countL)
y = ans.y2
x = np.arange(1, countL)
y = y2
fig, ax = plt.subplots()
ax.plot(x, y)