Skip to content

Commit e56878c

Browse files
committed
Fixed bug-4429 and added corrosponding testcase
1 parent 297ff00 commit e56878c

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

lib/matplotlib/tests/test_widgets.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,7 @@ def test_CheckButtons():
260260
check.disconnect(cid)
261261

262262

263-
@image_comparison(baseline_images=['check_radio_buttons'], extensions=['png'],
264-
style='default')
263+
@image_comparison(baseline_images=['check_radio_buttons'], extensions=['png'])
265264
def test_check_radio_buttons_image():
266265
get_ax()
267266
plt.subplots_adjust(left=0.3)
@@ -271,6 +270,10 @@ def test_check_radio_buttons_image():
271270
widgets.CheckButtons(rax2, ('Check 1', 'Check 2', 'Check 3'),
272271
(False, True, True))
273272

273+
@image_comparison(baseline_images=['check_bunch_of_radio_buttons'], extensions=['png'])
274+
def test_check_bunch_of_radio_buttons():
275+
rax = plt.axes([0.05, 0.1, 0.15, 0.7])
276+
widgets.RadioButtons(rax, ('B1', 'B2', 'B3', 'B4', 'B5','B6', 'B7', 'B8', 'B9', 'B10', 'B11', 'B12', 'B13', 'B14', 'B15'))
274277

275278
def test_slider_slidermin_slidermax_invalid():
276279
fig, ax = plt.subplots()

0 commit comments

Comments
 (0)