ai-winter / python_motion_planning

Motion planning and Navigation of AGV/AMR:python implementation of Dijkstra, A*, JPS, D*, LPA*, D* Lite, (Lazy)Theta*, RRT, RRT*, RRT-Connect, Informed RRT*, ACO, Voronoi, PID, DWA, APF, LQR, MPC, RPP, DDPG, Bezier, Dubins etc.
GNU General Public License v3.0
407 stars 58 forks source link

Repeated subplots in plot.py file #4

Open kevinqyh0827 opened 7 months ago

kevinqyh0827 commented 7 months ago

Hi, there,

When I was running the example of RRT* star methods, the visualization result has the problem that multiple axes exist at the same time as shown below. 1708550523564

To fix that, a possible solution is:

  1. Locate the plotEnv() function at /utlils/plot/plot.py
  2. Comment line 54 since it creates another subplot.
  3. Change the "ax" from line 57, 66, 75 to "self.ax" to reuse the already existed subplots.