File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Legend support for Boxplot
3
3
Boxplots now support a *label * parameter to create legend entries.
4
4
5
5
Legend labels can be passed as a list of strings to label multiple boxes in a single
6
- `.boxplot ` call:
6
+ `.Axes. boxplot ` call:
7
7
8
8
9
9
.. plot ::
@@ -37,7 +37,7 @@ Legend labels can be passed as a list of strings to label multiple boxes in a si
37
37
ax.legend()
38
38
39
39
40
- Or as a single string to each individual `.boxplot `:
40
+ Or as a single string to each individual `.Axes. boxplot `:
41
41
42
42
.. plot ::
43
43
:include-source: true
Original file line number Diff line number Diff line change @@ -1460,7 +1460,7 @@ def test_boxplot_legend_labels():
1460
1460
assert all (isinstance (h , mpl .lines .Line2D ) for h in handles )
1461
1461
1462
1462
# Testing legend with number of labels different from number of boxes.
1463
- with pytest .raises (ValueError , match = 'There must be an equal number ' ):
1463
+ with pytest .raises (ValueError , match = 'values must have same the length ' ):
1464
1464
bp3 = axs [2 ].boxplot (data , label = legend_labels [:- 1 ])
1465
1465
1466
1466
# Test that for a string label, only the first box gets a label.
You can’t perform that action at this time.
0 commit comments