Skip to content

Commit eb5491e

Browse files
authored
DOC: Clarification.
1 parent f8ea2c5 commit eb5491e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎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 the smaller subplot.
1616
plt.legend(bbox_to_anchor=(1.05, 1), loc=2, borderaxespad=0.)
1717

1818
plt.show()

0 commit comments

Comments
 (0)