-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
[Bug]: CheckBoxes should be square, not rectangular #24471
Copy link
Copy link
Closed
Labels
Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!topic: widgets/UI
Milestone
Metadata
Metadata
Assignees
Labels
Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!topic: widgets/UI
Bug summary
In #24428 I noted that RadioButtons used to be elliptical, and I fixed that in #24455 to make them circular while only emitting a deprecation warning if users tried to access the
.circlesattribute (and even then, they directly go back to the old behavior).CheckButtons have the same issue: they are rectangular if the parent axes is not square. This issue can (most likely) be fixed in exactly the same manner as #24455 (see #24428 (comment)), preferably again keeping the backcompat layer and making things transparent to end users who don't try to access individual artists.
Tagging as good first issue it should(?) mostly be doing the same thing as #24455, but medium difficulty as you need to wrangle a bit with artists and transforms.
Code for reproduction
Actual outcome
Checkboxes become rectangular.
Expected outcome
They stay square.
Additional information
No response
Operating system
any
Matplotlib Version
3.7.0.dev691+g218cdffb53
Matplotlib Backend
any
Python version
3.10
Jupyter version
ENOSUCHLIB
Installation
git checkout