[ENH]: provide public API for styling radio buttons · Issue #24583 · matplotlib/matplotlib · GitHub
Skip to content

[ENH]: provide public API for styling radio buttons #24583

Description

@drammock

Problem

after #24455, we lost access to RadioButton circles through the public API. I'm requesting that there be a public way to style the individual radio button circles.

use case: Over at MNE-Python we use a set of RadioButtons in a signal annotation GUI (so users could select e.g. the "blink" or "motion artifact" button and then click-drag across the plot to add a corresponding annotation to that time span). We color-code those annotations so we need a way to access the radio button circles individually, to set the color, edge color, and alpha. We also set the size and linewidth to make the buttons easy to click and the colors easier to distinguish. Here's a screenshot:

Screenshot_2022-12-02_12-09-47

cc @larsoner

Proposed solution

make self._buttons public?

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions