From 0beaca7767eabc4b00a6969c12a2b4d2c1debf1f Mon Sep 17 00:00:00 2001 From: Jiri Hubacek Date: Fri, 19 Oct 2018 21:14:26 +0200 Subject: [PATCH] Remove cusps points from plot --- plot.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plot.py b/plot.py index 44ba684..63348b7 100644 --- a/plot.py +++ b/plot.py @@ -197,11 +197,6 @@ if __name__ == "__main__": label=t["cost"][traj]) except: print("No trajectory") - for i in range(len(t["traj"][-1]) - 1): - n1 = t["traj"][-1][i] - n2 = t["traj"][-1][i + 1] - if (sign(n1[4]) != sign(n2[4])): - plt.plot(n2[0], n2[1], color=COLOR["log"][1], marker=".") plt.plot(*plot_nodes([s["init"]]), color=COLOR["start"], marker=".") plt.plot(*plot_nodes([s["goal"]]), color=COLOR["goal"], marker=".") # end plot here -- 2.39.2