blob: 7991b735d0e5e3d5b9a21b79485d7530945af4ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/usr/bin/python
import sys
import matplotlib.pylab as plt
import numpy
mean = None
deviation = None
with open(sys.argv[1], 'r') as f:
for l in f:
l = l.strip()
s = l.split()
if l.find("out of range") != -1:
continue
if l.startswith('Compared'):
N = int(s[3])
if mean is None:
mean = numpy.zeros(int(s[5]))
deviation = numpy.zeros(int(s[5]))
elif l.startswith('mean'):
print s
mean[N] = float(s[2])
deviation[N] = float(s[4])
plt.plot(mean)
plt.plot(deviation)
plt.show()
|