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 95890c2 commit 5170c2dCopy full SHA for 5170c2d
lib/matplotlib/tests/test_legend.py
@@ -1437,21 +1437,6 @@ def test_legend_text():
1437
assert_allclose(leg_bboxes[1].bounds, leg_bboxes[0].bounds)
1438
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
def test_boxplot_legend_labels():
1456
# Test that legend entries are generated when passing `label`.
1457
np.random.seed(19680801)
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments