File tree 1 file changed +0
-15
lines changed
1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -1437,21 +1437,6 @@ def test_legend_text():
1437
1437
assert_allclose (leg_bboxes [1 ].bounds , leg_bboxes [0 ].bounds )
1438
1438
1439
1439
1440
- def test_boxplot_labels ():
1441
- # Test that boxplot(..., labels=) sets the tick labels but not legend entries
1442
- # This is not consistent with other plot types but is the current behavior.
1443
- fig , ax = plt .subplots ()
1444
- np .random .seed (19680801 )
1445
- data = np .random .random ((10 , 3 ))
1446
- bp = ax .boxplot (data , labels = ['A' , 'B' , 'C' ])
1447
- # Check that labels set the tick labels ...
1448
- assert [l .get_text () for l in ax .get_xticklabels ()] == ['A' , 'B' , 'C' ]
1449
- # ... but not legend entries
1450
- handles , labels = ax .get_legend_handles_labels ()
1451
- assert len (handles ) == 0
1452
- assert len (labels ) == 0
1453
-
1454
-
1455
1440
def test_boxplot_legend_labels ():
1456
1441
# Test that legend entries are generated when passing `label`.
1457
1442
np .random .seed (19680801 )
You can’t perform that action at this time.
0 commit comments