script.py
This commit is contained in:
parent
2925ae70fb
commit
86a800c688
21
script.py
21
script.py
@ -1,25 +1,26 @@
|
|||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
|
|
||||||
fig_wer, fig_srr = plt.subplots()
|
fig_wer, ax_wer = plt.subplots()
|
||||||
|
fig_srr, ax_srr = plt.subplots()
|
||||||
|
|
||||||
X1, Y1 = [], []
|
X1, Y1 = [], []
|
||||||
X2, Y2 = [], []
|
X2, Y2 = [], []
|
||||||
y_num=1
|
y_num=1
|
||||||
for line in open('wer.txt', 'r'):
|
for line in open('wer.txt', 'r'):
|
||||||
X1.append(line)
|
Y1.append(line)
|
||||||
Y1.append(y_num)
|
X1.append(y_num)
|
||||||
y_num=y_num+1
|
y_num=y_num+1
|
||||||
|
|
||||||
fig_wer.plot(X1, Y1)
|
ax_wer.plot(X1, Y1)
|
||||||
fig_wer.set_title("WER")
|
ax_wer.set_title("WER")
|
||||||
fig_wer.savefig('wer.png')
|
fig_wer.savefig('wer.png')
|
||||||
|
|
||||||
y_num=1
|
y_num=1
|
||||||
for line in open('srr.txt', 'r'):
|
for line in open('srr.txt', 'r'):
|
||||||
X2.append(line)
|
Y2.append(line)
|
||||||
Y2.append(y_num)
|
X2.append(y_num)
|
||||||
y_num=y_num+1
|
y_num=y_num+1
|
||||||
|
|
||||||
fig_srr.plot(X2, Y2)
|
ax_srr.plot(X2, Y2)
|
||||||
fig_srr.set_title("SRR")
|
ax_srr.set_title("SRR")
|
||||||
fig_srr.savefig('srr.png')
|
fig_srr.savefig('srr.png')
|
||||||
|
Loading…
Reference in New Issue
Block a user