AtsushiSakai / AtsushiSakai/PythonRobotics

obstacle circles not consistent when increasing figure size

Aperta
#1,396 8 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
30.5k
Fork
7.4k
Merge medio
1g 9h
PR unite (30g)
3

Descrizione

**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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
matplotlib, python
Ambito
data-visualization
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Attiva
Chiarezza
Abbastanza chiara
Idoneità per principianti
68/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.