diff options
author | hanemile <emile.hansmaennel@gmail.com> | 2018-01-16 15:59:01 +0100 |
---|---|---|
committer | hanemile <emile.hansmaennel@gmail.com> | 2018-01-16 15:59:01 +0100 |
commit | 50012de6c2fd3eae0aa04b7a2b4e497dc0bae27a (patch) | |
tree | 51c6ba3aa9cb2771c2d7aa0c9bbe54fa5b4d2ef7 /src/python/plot_lookuptable.py | |
parent | e5d00b1b2e2e7c0684dae7324feb86c36188047b (diff) |
updated the source files
Diffstat (limited to 'src/python/plot_lookuptable.py')
-rwxr-xr-x | src/python/plot_lookuptable.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/python/plot_lookuptable.py b/src/python/plot_lookuptable.py new file mode 100755 index 0000000..9d5c6f2 --- /dev/null +++ b/src/python/plot_lookuptable.py @@ -0,0 +1,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() |