vit.py 362 Bytes
Newer Older
Matthieu Constant's avatar
postpro  
Matthieu Constant committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import numpy as np
v0 = []
v1 = []
v2 = []

for k in range(0,1000):
    with open("output/part-%05d" % k) as f :
        for l in f :
            w = l.split(" ")
            if w[0] == "P" :
                u = float(w[4])
                print(u)
                v0.append(u)

v0 = np.array(v0)

from matplotlib import pyplot as plt
plt.plot(v0)
plt.show()