MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_RadioButtons

Function test_RadioButtons

lib/matplotlib/tests/test_widgets.py:1101–1108  ·  view source on GitHub ↗
(ax)

Source from the content-addressed store, hash-verified

1099
1100
1101def test_RadioButtons(ax):
1102 radio = widgets.RadioButtons(ax, ('Radio 1', 'Radio 2', 'Radio 3'))
1103 radio.set_active(1)
1104 assert radio.value_selected == 'Radio 2'
1105 assert radio.index_selected == 1
1106 radio.clear()
1107 assert radio.value_selected == 'Radio 1'
1108 assert radio.index_selected == 0
1109
1110
1111@image_comparison(['check_radio_buttons.png'], style='mpl20', remove_text=True)

Callers

nothing calls this directly

Calls 2

set_activeMethod · 0.95
clearMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…