8000 DOC: fix and expand example · matplotlib/matplotlib@c51bb2f · GitHub
[go: up one dir, main page]

Skip to content

Commit c51bb2f

Browse files
committed
DOC: fix and expand example
1 parent 8035c08 commit c51bb2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/text_labels_and_annotations/figlegendoutside_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
# codes have an ambiguity as to whether the legend is stacked
4141
# horizontally (the default) or vertically. To specify the vertical stacking
4242
# the *outside* kwarg can be specified with ``"vertical"`` instead of just
43-
# the booloean *True*:
43+
# the boolean *True*:
4444

4545
fig, axs = plt.subplots(1, 2, sharey=True, constrained_layout=True)
4646
axs[0].plot(x, y1, 'rs-', label='Line1')
@@ -64,7 +64,7 @@
6464
for i in range(1):
6565
ax = fig.add_subplot(gs[i, 0])
6666
ax.plot(range(10), label=f'Boo{i}')
67-
lg = fig.legend(ax=[ax], loc='upper left', outside=True, borderaxespad=4)
67+
lg = fig.legend(ax=[ax], loc='lower right', outside=True, borderaxespad=4)
6868

6969
gs2 = gs0[1].subgridspec(3, 1)
7070
axx = []

0 commit comments

Comments
 (0)
0