From 8fd4f54cd943550b99a5c033be172a338d631aa6 Mon Sep 17 00:00:00 2001 From: Balduin Date: Tue, 24 Nov 2026 15:17:00 +0100 Subject: [PATCH] test(tecs): remove arrows They were sometimes pointing in the wrong direction, because two subsequent points in the csv were equal (low precision). Remove them entirely. Could also find the direction over several samples but the direction is obvious also without them. --- src/lib/tecs/plot_closed_loop.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/lib/tecs/plot_closed_loop.py b/src/lib/tecs/plot_closed_loop.py index e62b18624de..da99603c140 100755 --- a/src/lib/tecs/plot_closed_loop.py +++ b/src/lib/tecs/plot_closed_loop.py @@ -174,12 +174,6 @@ def plot_phase(d, title): ax.annotate(label, (e_ske[0], e_spe[0]), xytext=(6, 6), textcoords="offset points", color=c, fontsize=12, fontweight="bold") - # Direction arrow halfway along the path - s = np.concatenate(([0.0], np.cumsum(np.hypot(np.diff(e_ske), np.diff(e_spe))))) - i = min(int(np.searchsorted(s, 0.5 * s[-1])), len(s) - 2) - ax.annotate("", xy=(e_ske[i + 1], e_spe[i + 1]), xytext=(e_ske[i], e_spe[i]), - arrowprops=dict(arrowstyle="-|>", color=c, lw=2, mutation_scale=18)) - ax.set_xlim(-1.5, 1.5) ax.set_ylim(-1.5, 1.5) ax.set_aspect("equal")