Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit456abce

Browse files
committed
Merge pull request#6652 from madphysicist/patch-2
DOC: Minor doc updates.
1 parent06ed8a8 commit456abce

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 thislegend, expanding itself to
7+
# Place a legend above thissubplot, 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 smallerfigure.
15+
# Place a legend to the right of this smallersubplot.
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
defset_text(self,s):
757-
"settext"
757+
"Set thetext of this area as a string."
758758
self._text.set_text(s)
759759
self.stale=True
760760

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

765765
defset_multilinebaseline(self,t):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp