Skip to content

Commit 6e743ef

Browse files
authored
PathPlanning/InformedRRTStar/informed_rrt_star.py: Fix hard coded graph axis (#982)
- Use self.min_rand, self.max_rand variable values in place of -2, 15
1 parent e2412a6 commit 6e743ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PathPlanning/InformedRRTStar/informed_rrt_star.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def draw_graph(self, x_center=None, c_best=None, c_min=None, e_theta=None,
293293

294294
plt.plot(self.start.x, self.start.y, "xr")
295295
plt.plot(self.goal.x, self.goal.y, "xr")
296-
plt.axis([-2, 15, -2, 15])
296+
plt.axis([self.min_rand, self.max_rand, self.min_rand, self.max_rand])
297297
plt.grid(True)
298298
plt.pause(0.01)
299299

0 commit comments

Comments
 (0)