Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 989aa06

Browse files
authored
Merge pull request #6652 from madphysicist/patch-2
DOC: Minor doc updates.
2 parents 824fe40 + 0f253d3 commit 989aa06

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/users/plotting/examples/simple_legend01.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
plt.subplot(211)
55
plt.plot([1,2,3], label="test1")
66
plt.plot([3,2,1], label="test2")
7-
# Place a legend above this legend, expanding itself to
7+
# Place a legend above this subplot, expanding itself to
88
# fully use the given bounding box.
99
plt.legend(bbox_to_anchor=(0., 1.02, 1., .102), loc=3,
1010
ncol=2, mode="expand", borderaxespad=0.)
1111

1212
plt.subplot(223)
1313
plt.plot([1,2,3], label="test1")
1414
plt.plot([3,2,1], label="test2")
15-
# Place a legend to the right of this smaller figure.
15+
# Place a legend to the right of this smaller subplot.
1616
plt.legend(bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.)
1717

1818
plt.show()

lib/matplotlib/offsetbox.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,12 +754,12 @@ def __init__(self, s,
754754
self._minimumdescent = minimumdescent
755755

756756
def set_text(self, s):
757-
"set text"
757+
"Set the text of this area as a string."
758758
self._text.set_text(s)
759759
self.stale = True
760760

761761
def get_text(self):
762-
"get text"
762+
"Returns the string representation of this area's text"
763763
return self._text.get_text()
764764

765765
def set_multilinebaseline(self, t):

0 commit comments

Comments
 (0)