From aa2b4092877e216c74b37f758de2414d39f6e0a7 Mon Sep 17 00:00:00 2001 From: "William L. Thomson Jr." Date: Fri, 23 Feb 2024 18:02:45 -0500 Subject: [PATCH] PathPlanning/InformedRRTStar/informed_rrt_star.py: Fix hard coded graph axis - Use self.min_rand, self.max_rand variable values in place of -2, 15 --- PathPlanning/InformedRRTStar/informed_rrt_star.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PathPlanning/InformedRRTStar/informed_rrt_star.py b/PathPlanning/InformedRRTStar/informed_rrt_star.py index b6f9d234dd..c37326e490 100644 --- a/PathPlanning/InformedRRTStar/informed_rrt_star.py +++ b/PathPlanning/InformedRRTStar/informed_rrt_star.py @@ -293,7 +293,7 @@ def draw_graph(self, x_center=None, c_best=None, c_min=None, e_theta=None, plt.plot(self.start.x, self.start.y, "xr") plt.plot(self.goal.x, self.goal.y, "xr") - plt.axis([-2, 15, -2, 15]) + plt.axis([self.min_rand, self.max_rand, self.min_rand, self.max_rand]) plt.grid(True) plt.pause(0.01)