Finish special algo and add write to file and plot

This commit is contained in:
Janita Willumsen
2023-09-07 14:28:44 +02:00
parent c26b788503
commit dd16ffd822
3 changed files with 93 additions and 1 deletions

17
src/analyticPlot.py Normal file
View File

@@ -0,0 +1,17 @@
import numpy as np
import matplotlib.pyplot as plt
x = []
y = []
v = []
with open('testdata.txt') as f:
for line in f:
a, b, c = line.strip().split()
x.append(float(a))
# y.append(float(b))
v.append(float(c))
fig, ax = plt.subplots()
ax.plot(x, v)
plt.show()
# plt.savefig("main.png")