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

Function test_radio_buttons

lib/matplotlib/tests/test_widgets.py:1143–1149  ·  view source on GitHub ↗
(fig_test, fig_ref)

Source from the content-addressed store, hash-verified

1141
1142@check_figures_equal()
1143def test_radio_buttons(fig_test, fig_ref):
1144 widgets.RadioButtons(fig_test.subplots(), ["tea", "coffee"])
1145 ax = fig_ref.add_subplot(xticks=[], yticks=[])
1146 ax.scatter([.15, .15], [2/3, 1/3], transform=ax.transAxes,
1147 s=(plt.rcParams["font.size"] / 2) ** 2, c=["C0", "none"])
1148 ax.text(.25, 2/3, "tea", transform=ax.transAxes, va="center")
1149 ax.text(.25, 1/3, "coffee", transform=ax.transAxes, va="center")
1150
1151
1152@check_figures_equal()

Callers

nothing calls this directly

Calls 4

add_subplotMethod · 0.80
subplotsMethod · 0.45
scatterMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…