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

Function test_check_buttons

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

Source from the content-addressed store, hash-verified

1209
1210@check_figures_equal()
1211def test_check_buttons(fig_test, fig_ref):
1212 widgets.CheckButtons(fig_test.subplots(), ["tea", "coffee"], [True, True])
1213 ax = fig_ref.add_subplot(xticks=[], yticks=[])
1214 ax.scatter([.15, .15], [2/3, 1/3], marker='s', transform=ax.transAxes,
1215 s=(plt.rcParams["font.size"] / 2) ** 2, c=["none", "none"])
1216 ax.scatter([.15, .15], [2/3, 1/3], marker='x', transform=ax.transAxes,
1217 s=(plt.rcParams["font.size"] / 2) ** 2, c=["k", "k"])
1218 ax.text(.25, 2/3, "tea", transform=ax.transAxes, va="center")
1219 ax.text(.25, 1/3, "coffee", transform=ax.transAxes, va="center")
1220
1221
1222@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…