Skip to content

Commit 2589e88

Browse files
oscargusstory645
andauthored
Apply suggestions from code review
Co-authored-by: hannah <story645@gmail.com>
1 parent eb4a684 commit 2589e88

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ def legend(self, *args, **kwargs):
217217
218218
.. note::
219219
Specific artists can be excluded from the automatic legend element
220-
selection by defining a label starting with an underscore, "_".
221-
This is default for all artists, so calling `.Axes.legend` without
220+
selection by using a label starting with an underscore, "_".
221+
A string with an underscore is the default label for all artists, so calling `.Axes.legend` without
222222
any arguments and without setting the labels manually will result
223223
in no legend being drawn.
224224

tutorials/intermediate/legend_guide.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
to be created (see :ref:`proxy_legend_handles` for further details).
4949
5050
.. note::
51-
Those artists with an empty string as label or with a label starting with
51+
Artists with an empty string as label or with a label starting with
5252
"_" will be ignored.
5353
5454
For full control of what is being added to the legend, it is common to pass

0 commit comments

Comments
 (0)