Skip to content

Commit 3cfd4ab

Browse files
committed
clean some comments
1 parent c443c7f commit 3cfd4ab

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-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
@@ -2,10 +2,10 @@ Legend support for Boxplot
22
~~~~~~~~~~~~~~~~~~~~~~~~~~
33
Boxplots now generate legend entries and can be labelled with the
44
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
66
the whiskers.
77
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`.
99

1010
.. plot::
1111
:include-source: true

lib/matplotlib/tests/test_legend.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,6 @@ def test_boxplot_labels():
14731473
patch_artist=True)
14741474
axs[0, 1].set_title('Tick labels, no legend')
14751475
axs[0, 1].legend()
1476-
# assert "No artists with labels found to put in legend." in caplog.text
14771476
assert [l.get_text() for l in axs[0, 1].get_xticklabels()] == labels
14781477

14791478
# Testing legend labels, tick labels, and patch passed to legend.

0 commit comments

Comments
 (0)