This commit is contained in:
s432211 2020-05-05 10:10:37 +02:00
parent 18d6075997
commit a97f1eb88a
3 changed files with 11 additions and 9 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*.png
*.txt

2
Jenkinsfile vendored
View File

@ -24,4 +24,4 @@ pipeline {
} }
} }
} }
} }

16
plot.py
View File

@ -5,22 +5,22 @@ X2, Y2 = [], []
y_num = 1 y_num = 1
for line in open('wer.txt', 'r'): for line in open('wer.txt', 'r'):
Y1.append(float(line[:-1])) Y1.append(float(line[:-1]))
X1.append(y_num) X1.append(y_num)
y_num=y_num+1 y_num = y_num + 1
y_num = 1 y_num = 1
for line in open('srr.txt', 'r'): for line in open('srr.txt', 'r'):
Y2.append(float(line[:-1])) Y2.append(float(line[:-1]))
X2.append(y_num) X2.append(y_num)
y_num = y_num+1 y_num = y_num + 1
fig, ax = plt.subplots() fig, ax = plt.subplots()
plt.xticks(X1) plt.xticks(X1)
plt.title("WER SRR") plt.title("WER/SRR")
plt.xlabel("Number") plt.xlabel("Number")
plt.ylabel("Value") plt.ylabel("Value")
plt.plot(X1, Y1) plt.plot(X1, Y1)
plt.plot(X1, Y2) plt.plot(X1, Y2)
ax.legend(["WER", "SRR"]) ax.legend(["WER", "SRR"])
plt.savefig('plot.png') plt.savefig('plot.png')