diff --git a/doc/users/plotting/examples/simple_legend01.py b/doc/users/plotting/examples/simple_legend01.py index a234f970db95..8e0ede331670 100644 --- a/doc/users/plotting/examples/simple_legend01.py +++ b/doc/users/plotting/examples/simple_legend01.py @@ -4,7 +4,7 @@ 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.) @@ -12,7 +12,7 @@ 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() diff --git a/lib/matplotlib/offsetbox.py b/lib/matplotlib/offsetbox.py index 2e23b7e3bdfc..c9f291197398 100644 --- a/lib/matplotlib/offsetbox.py +++ b/lib/matplotlib/offsetbox.py @@ -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):