2020-04-19 21:26:28 +02:00
|
|
|
import matplotlib.pyplot as plt
|
|
|
|
|
|
|
|
fig_wer, fig_srr = plt.subplots()
|
|
|
|
|
|
|
|
X1, Y1 = [], []
|
|
|
|
X2, Y2 = [], []
|
|
|
|
y_num=1
|
|
|
|
for line in open('wer.txt', 'r'):
|
|
|
|
X1.append(line)
|
|
|
|
Y1.append(y_num)
|
|
|
|
y_num=y_num+1
|
|
|
|
|
|
|
|
fig_wer.plot(X1, Y1)
|
|
|
|
fig_wer.set_title("WER")
|
|
|
|
fig_wer.savefig('wer.png')
|
|
|
|
|
|
|
|
y_num=1
|
|
|
|
for line in open('srr.txt', 'r'):
|
|
|
|
X2.append(line)
|
|
|
|
Y2.append(y_num)
|
|
|
|
y_num=y_num+1
|
|
|
|
|
|
|
|
fig_srr.plot(X2, Y2)
|
|
|
|
fig_srr.set_title("SRR")
|
|
|
|
fig_srr.savefig('srr.png')
|