Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7b39755

Browse files
committed
delete old function
1 parent 95890c2 commit 7b39755

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

lib/matplotlib/tests/test_legend.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,21 +1437,6 @@ def test_legend_text():
14371437
assert_allclose(leg_bboxes[1].bounds, leg_bboxes[0].bounds)
14381438

14391439

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-
14551440
def test_boxplot_legend_labels():
14561441
# Test that legend entries are generated when passing `label`.
14571442
np.random.seed(19680801)

0 commit comments

Comments
 (0)