plot 10
This commit is contained in:
parent
ff3ceac7be
commit
33598a0deb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user