10000 Merge pull request #15778 from larrybradley/fix-typos · matplotlib/matplotlib@d1a152d · GitHub
[go: up one dir, main page]

Skip to content

Commit d1a152d

Browse files
authored
Merge pull request #15778 from larrybradley/fix-typos
Fix typos and comma splices in legend guide
2 parents cafbc10 + b204f51 commit d1a152d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tutorials/intermediate/legend_guide.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
6969
Not all handles can be turned into legend entries automatically,
7070
so it is often necessary to create an artist which *can*. Legend handles
71-
don't have to exists on the Figure or Axes in order to be used.
71+
don't have to exist on the Figure or Axes in order to be used.
7272
7373
Suppose we wanted to create a legend which has an entry for some data which
7474
is represented by a red color:
@@ -83,7 +83,7 @@
8383
plt.show()
8484

8585
###############################################################################
86-
# There are many supported legend handles, instead of creating a patch of color
86+
# There are many supported legend handles. Instead of creating a patch of color
8787
# we could have created a line with a marker:
8888

8989
import matplotlib.lines as mlines
@@ -104,7 +104,7 @@
104104
# The ``bbox_to_anchor`` keyword gives a great degree of control for manual
105105
# legend placement. For example, if you want your axes legend located at the
106106
# figure's top right-hand corner instead of the axes' corner, simply specify
107-
# the corner's location, and the coordinate system of that location::
107+
# the corner's location and the coordinate system of that location::
108108
#
109109
# plt.legend(bbox_to_anchor=(1, 1),
110110
# bbox_transform=plt.gcf().transFigure)
@@ -137,7 +137,7 @@
137137
# the :func:`legend` function multiple times, you will find that only one
138138
# legend ever exists on the Axes. This has been done so that it is possible
139139
# to call :func:`legend` repeatedly to update the legend to the latest
140-
# handles on the Axes, so to persist old legend instances, we must add them
140+
# handles on the Axes. To keep old legend instances, we must add them
141141
# manually to the Axes:
142142

143143
line1, = plt.plot([1, 2, 3], label="Line 1", linestyle='--')

0 commit comments

Comments
 (0)
0