Add support for horizontal CheckButtons by QuLogic · Pull Request #27946 · matplotlib/matplotlib · GitHub
Skip to content

Add support for horizontal CheckButtons - #27946

Closed
QuLogic wants to merge 2 commits into
matplotlib:mainfrom
QuLogic:horizontal-checkbuttons
Closed

QuLogic wants to merge 2 commits into
matplotlib:mainfrom
QuLogic:horizontal-checkbuttons

Conversation

@QuLogic

@QuLogic QuLogic commented Mar 19, 2024

Copy link
Copy Markdown
Member

PR summary

This is a followup to #13374, but for CheckButtons. Also updates the test image to check both options.

Feel free to review after #13374 or as a group. This is built on top of that one, so merging this would merge that as well.

PR checklist

@QuLogic
QuLogic force-pushed the horizontal-checkbuttons branch from b58dc7d to f92a95f Compare March 19, 2024 06:00
@QuLogic
QuLogic force-pushed the horizontal-checkbuttons branch from f92a95f to 873a3d8 Compare May 17, 2024 20:24
@QuLogic QuLogic added this to the v3.10.0 milestone May 17, 2024
@timhoffm

Copy link
Copy Markdown
Member

@QuLogic QuLogic mentioned this pull request Aug 21, 2024
6 tasks
A new optional keyword argument 'layout_direction' is introduced to
control it. The new parameter defaults to 'vertical' for backwards
compatibility.
@QuLogic

QuLogic commented Aug 21, 2024

Copy link
Copy Markdown
Member Author

I assume the reason for implementing it that way was that it was easier to implement. The latter requires accounting for the text width before placing the markers, while the former just places them equidistantly.

@QuLogic
QuLogic force-pushed the horizontal-checkbuttons branch from 873a3d8 to 9a5eb5b Compare August 21, 2024 22:07
@timhoffm

Copy link
Copy Markdown
Member

You could still place equidistantly with text right of the buttons. The possible overlap issues are the same, except that you have a constant reserved space for the buttons.

@QuLogic

QuLogic commented Jan 17, 2026

Copy link
Copy Markdown
Member Author

@QuLogic QuLogic closed this Jan 17, 2026
@QuLogic
QuLogic deleted the horizontal-checkbuttons branch March 25, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants