From ed5004b0f84081b93a2aceebe96defe013d99e06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?YSF=E3=83=84?= <50619491+yousefbilal@users.noreply.github.com> Date: Sat, 18 May 2024 13:56:04 +0400 Subject: [PATCH] fixed hard-coded plot limits (#1018) --- PathPlanning/RRT/rrt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PathPlanning/RRT/rrt.py b/PathPlanning/RRT/rrt.py index 55092e6e..e6dd9b64 100644 --- a/PathPlanning/RRT/rrt.py +++ b/PathPlanning/RRT/rrt.py @@ -199,7 +199,7 @@ class RRT: plt.plot(self.start.x, self.start.y, "xr") plt.plot(self.end.x, self.end.y, "xr") plt.axis("equal") - 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)