Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7b39755

Browse filesBrowse files
committed
delete old function
1 parent 95890c2 commit 7b39755
Copy full SHA for 7b39755

File tree

Expand file treeCollapse file tree

1 file changed

+0
-15
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-15
lines changed

‎lib/matplotlib/tests/test_legend.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_legend.py
-15Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.