blob: 9d5c6f282a119b8a7fbfa7b125af656c195c9a56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/env python3
import matplotlib.pyplot as plt
lookup_arr_a = []
lookup_arr_b = []
path = "data/2e7.csv"
print("opening data...")
with open(path) as data:
print("opened " + path)
lookup = data.readlines()
for i in range(0, len(lookup)):
lookup_arr_a.append(lookup[i].split(", ")[0])
lookup_arr_b.append(lookup[i].split(", ")[1])
plt.plot(lookup_arr_a, lookup_arr_b)
plt.show()
|