2020-04-23 08:53:05 +02:00
|
|
|
import matplotlib.pyplot as plt
|
|
|
|
|
|
|
|
X1, Y1 = [], []
|
|
|
|
X2, Y2 = [], []
|
|
|
|
y_num=1
|
|
|
|
for line in open('wer.txt', 'r'):
|
|
|
|
Y1.append(float(line[:-1]))
|
|
|
|
X1.append(y_num)
|
|
|
|
y_num=y_num+1
|
|
|
|
|
|
|
|
y_num=1
|
|
|
|
for line in open('srr.txt', 'r'):
|
|
|
|
Y2.append(float(line[:-1]))
|
|
|
|
X2.append(y_num)
|
|
|
|
y_num=y_num+1
|
|
|
|
|
2020-04-23 09:02:15 +02:00
|
|
|
fig, ax = plt.subplots()
|
2020-04-23 09:04:42 +02:00
|
|
|
plt.xticks(X1)
|
2020-04-23 09:02:15 +02:00
|
|
|
plt.title("WER SRR")
|
|
|
|
plt.xlabel("Number")
|
|
|
|
plt.ylabel("Value")
|
|
|
|
plt.plot(X1, Y1)
|
|
|
|
plt.plot(X1, Y2)
|
|
|
|
ax.legend(["WER", "SRR"])
|
|
|
|
plt.savefig('plot.png')
|