8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1ce87b commit 31e9a1fCopy full SHA for 31e9a1f
lib/matplotlib/tests/test_widgets.py
@@ -1024,6 +1024,18 @@ def test_radio_buttons(fig_test, fig_ref):
1024
ax.text(.25, 1/3, "coffee", transform=ax.transAxes, va="center")
1025
1026
1027
+@check_figures_equal(extensions=["png"])
1028
+def test_check_buttons(fig_test, fig_ref):
1029
+ widgets.CheckButtons(fig_test.subplots(), ["tea", "coffee"], [True, True])
1030
+ ax = fig_ref.add_subplot(xticks=[], yticks=[])
1031
+ ax.scatter([.15, .15], [2/3, 1/3], marker='s', transform=ax.transAxes,
1032
+ s=(plt.rcParams["font.size"] / 2) ** 2, c=["none", "none"])
1033
+ ax.scatter([.15, .15], [2/3, 1/3], marker='x', transform=ax.transAxes,
1034
+ s=(plt.rcParams["font.size"] / 2) ** 2, c=["k", "k"])
1035
+ ax.text(.25, 2/3, "tea", transform=ax.transAxes, va="center")
1036
+ ax.text(.25, 1/3, "coffee", transform=ax.transAxes, va="center")
1037
+
1038
1039
def test_slider_slidermin_slidermax_invalid():
1040
fig, ax = plt.subplots()
1041
# test min/max with floats
0 commit comments