Develop #14
@ -34,12 +34,17 @@ def main():
|
|||||||
"seagreen",
|
"seagreen",
|
||||||
"darkred"
|
"darkred"
|
||||||
]
|
]
|
||||||
|
start_pos = set()
|
||||||
for label, color, file in zip(labels, colors, files):
|
for label, color, file in zip(labels, colors, files):
|
||||||
with open(file) as f:
|
with open(file) as f:
|
||||||
lines = f.readlines()
|
lines = f.readlines()
|
||||||
t = np.linspace(0, 50, len(lines))
|
t = np.linspace(0, 50, len(lines))
|
||||||
r = np.array([list(map(float, line.strip().split(","))) for line in lines])
|
r = np.array([list(map(float, line.strip().split(","))) for line in lines])
|
||||||
plt.plot(r[:,0], r[:,1], label=label, color=color)
|
plt.plot(r[:,0], r[:,1], label=label, color=color)
|
||||||
|
start_pos.add((r[0,0],r[0,1]))
|
||||||
|
|
||||||
|
for pos in start_pos:
|
||||||
|
plt.plot(*pos, "o", color="black")
|
||||||
|
|
||||||
plt.xlabel(r"x $(\mu m)$")
|
plt.xlabel(r"x $(\mu m)$")
|
||||||
plt.ylabel(r"y $(\mu m)$")
|
plt.ylabel(r"y $(\mu m)$")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user