AtsushiSakai / AtsushiSakai/PythonRobotics
obstacle circles not consistent when increasing figure size
- Dominant language
- Python
- Stars
- 30.5k
- Forks
- 7.4k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 3
Description
**Describe the bug**
in many scripts e.g. PathPlanning/RRTDubins/rrt_dubins.py
the black circles change size when making the figure full screen. This is caused by the fact that the obstacle is drawn with `plt.plot(ox, oy, "ok", ms=30 * size)`, that does not scale the circle properly when the figure changes size.
probably something like
```
ax = plt.gca()
ax.add_patch(plt.Circle((ox, oy), size, color="k", fill=True))
```
would work
Contributor guide
Research direction
Start with PathPlanning/RRTDubins/rrt_dubins.py and inspect how obstacle circles are drawn, then reproduce the issue by resizing or maximizing the figure. Update the affected plotting code so obstacle circles remain consistent when the figure size changes, and verify the behavior across the other scripts that use the same pattern.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- matplotlib, python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100