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
33Boxplots now support a *label * parameter to create legend entries.
44
55Legend 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
Original file line number Diff line number Diff line change @@ -1460,7 +1460,7 @@ def test_boxplot_legend_labels():
14601460 assert all (isinstance (h , mpl .lines .Line2D ) for h in handles )
14611461
14621462 # 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 ' ):
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.
You can’t perform that action at this time.
0 commit comments