Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor doc updates. #6652

Merged
merged 3 commits into from Jun 28, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/users/plotting/examples/simple_legend01.py
Expand Up @@ -4,15 +4,15 @@
plt.subplot(211)
plt.plot([1,2,3], label="test1")
plt.plot([3,2,1], label="test2")
# Place a legend above this legend, expanding itself to
# Place a legend above this subplot, expanding itself to
# fully use the given bounding box.
plt.legend(bbox_to_anchor=(0., 1.02, 1., .102), loc=3,
ncol=2, mode="expand", borderaxespad=0.)

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

plt.show()
4 changes: 2 additions & 2 deletions lib/matplotlib/offsetbox.py
Expand Up @@ -754,12 +754,12 @@ def __init__(self, s,
self._minimumdescent = minimumdescent

def set_text(self, s):
"set text"
"Set the text of this area as a string."
self._text.set_text(s)
self.stale = True

def get_text(self):
"get text"
"Returns the string representation of this area's text"
return self._text.get_text()

def set_multilinebaseline(self, t):
Expand Down