Skip to content

Commit ed5004b

Browse files
authored
fixed hard-coded plot limits (#1018)
1 parent dfcc08e commit ed5004b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PathPlanning/RRT/rrt.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def draw_graph(self, rnd=None):
199199
plt.plot(self.start.x, self.start.y, "xr")
200200
plt.plot(self.end.x, self.end.y, "xr")
201201
plt.axis("equal")
202-
plt.axis([-2, 15, -2, 15])
202+
plt.axis([self.min_rand, self.max_rand, self.min_rand, self.max_rand])
203203
plt.grid(True)
204204
plt.pause(0.01)
205205

0 commit comments

Comments
 (0)