Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Description
Bug summary
RadioButtons are drawn as Circles in transAxes space, which means that as soon as the containing Axes is not equal-aspect, they will actually be elliptical, not circular.
In order to fix this, either the parent axes must be forced to be equal-aspect (we already remove the ticks and the navigatability, so more configurationmay be OK), or we should use add functionality to Circle so that the center and the radius can be in different transform systems (center in transAxes, radius in pixels) -- or abuse scatter() instead to draw the radiobuttons (but this would break theradiobuttons.circles
attribute).
Code for reproduction
https://matplotlib.org/stable/gallery/widgets/radio_buttons.htmlandmakethewindowmuchwiderthantall
Actual outcome
radio buttons are elliptical
Expected outcome
radio buttons stay circular
Additional information
No response
Operating system
fedora37
Matplotlib Version
3.7.0.dev619+g3d6c3da884
Matplotlib Backend
any
Python version
3.10
Jupyter version
ENOSUCHLIB
Installation
git checkout