Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

RadioButtons: Add 2D grid labels layout support#30803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
doronbehar wants to merge3 commits intomatplotlib:main
base:main
Choose a base branch
Loading
fromdoronbehar:RadioButtonsGrid

Conversation

@doronbehar
Copy link
Contributor

@doronbehardoronbehar commentedDec 1, 2025
edited
Loading

PR summary

RadioButtons: Add 2D grid labels layout support

TheRadioButtons widget now supports arranging buttons in a 2D grid by passing a list of lists of strings as the labels parameter. Each inner list represents a row in the grid.

Key features:

  • Active index and index_selected remain as single integers for the
    flattened array (reading left-to-right, top-to-bottom)
  • Column positions are automatically calculated based on the maximum
    text width in each column for optimal spacing
  • Text offset is now consistent between 1D and 2D layouts (0.10)
  • Includes new example: galleries/examples/widgets/radio_buttons_grid.py

🤖 Generated withClaude Code

Co-Authored-By: Claudenoreply@anthropic.com

PR checklist

doronbeharand others added3 commitsDecember 1, 2025 15:13
The RadioButtons widget now supports arranging buttons in a 2D grid bypassing a list of lists of strings as the labels parameter. Each innerlist represents a row in the grid.Key features:- Active index and index_selected remain as single integers for the  flattened array (reading left-to-right, top-to-bottom)- Column positions are automatically calculated based on the maximum  text width in each column for optimal spacing- Text offset is now consistent between 1D and 2D layouts (0.10)- Includes new example: galleries/examples/widgets/radio_buttons_grid.pyClosesmatplotlib#13374🤖 Generated with [Claude Code](https://claude.com/claude-code)Co-Authored-By: Claude <noreply@anthropic.com>
@github-actionsgithub-actionsbot added the Documentation: APIfiles in lib/ and doc/api labelDec 1, 2025
@doronbehar
Copy link
ContributorAuthor

I don't know how to fix the otherrstcheck CI errors...

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

Documentation: APIfiles in lib/ and doc/apiDocumentation: examplesfiles in galleries/examplestopic: widgets/UI

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@doronbehar

[8]ページ先頭

©2009-2025 Movatter.jp