Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitc96334d

Browse files
committed
fix failing test
1 parent2e41cb5 commitc96334d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎doc/users/next_whats_new/boxplot_legend_support.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Legend support for Boxplot
33
Boxplots now support a *label* parameter to create legend entries.
44

55
Legend labels can be passed as a list of strings to label multiple boxes in a single
6-
`.boxplot` call:
6+
`.Axes.boxplot` call:
77

88

99
..plot::
@@ -37,7 +37,7 @@ Legend labels can be passed as a list of strings to label multiple boxes in a si
3737
ax.legend()
3838

3939

40-
Or as a single string to each individual `.boxplot`:
40+
Or as a single string to each individual `.Axes.boxplot`:
4141

4242
..plot::
4343
:include-source: true

‎lib/matplotlib/tests/test_legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1460,7 +1460,7 @@ def test_boxplot_legend_labels():
14601460
assertall(isinstance(h,mpl.lines.Line2D)forhinhandles)
14611461

14621462
# Testing legend with number of labels different from number of boxes.
1463-
withpytest.raises(ValueError,match='There mustbe an equal number'):
1463+
withpytest.raises(ValueError,match='values musthave same the length'):
14641464
bp3=axs[2].boxplot(data,label=legend_labels[:-1])
14651465

14661466
# Test that for a string label, only the first box gets a label.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp