File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ Legend support for Boxplot
2
2
~~~~~~~~~~~~~~~~~~~~~~~~~~
3
3
Boxplots now generate legend entries and can be labelled with the
4
4
new `label ` parameter. If a patch is passed to the box with `show_patch=True `,
5
- the legend gets its handle from the patch instead of the `Line2d ` object from
5
+ the legend gets its handle from the patch instead of the `.Line2D ` object from
6
6
the whiskers.
7
7
The old `labels ` parameter that was used for setting tick labels is deprecated
8
- and replaced with ' tick_labels`.
8
+ and replaced with ` tick_labels `.
9
9
10
10
.. plot ::
11
11
:include-source: true
Original file line number Diff line number Diff line change @@ -1473,7 +1473,6 @@ def test_boxplot_labels():
1473
1473
patch_artist = True )
1474
1474
axs [0 , 1 ].set_title ('Tick labels, no legend' )
1475
1475
axs [0 , 1 ].legend ()
1476
- # assert "No artists with labels found to put in legend." in caplog.text
1477
1476
assert [l .get_text () for l in axs [0 , 1 ].get_xticklabels ()] == labels
1478
1477
1479
1478
# Testing legend labels, tick labels, and patch passed to legend.
You can’t perform that action at this time.
0 commit comments