8000 DOC: Modified example instead of removing it · matplotlib/matplotlib@35f70d8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 35f70d8

Browse files
committed
DOC: Modified example instead of removing it
1 parent 05dbb33 commit 35f70d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/userdemo/anchored_box01.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010

1111
fig, ax = plt.subplots(figsize=(3, 3))
1212

13-
at = AnchoredText("Figure 1a",
14-
prop=dict(size=15), frameon=True, loc=2)
13+
# loc=8 is equivalent to loc='lower center'
14+
at = AnchoredText("Here is some\nsample text",
15+
prop=dict(size=15), frameon=True, loc=8)
1516
at.patch.set_boxstyle("round,pad=0.,rounding_size=0.2")
1617
ax.add_artist(at)
1718

0 commit comments

Comments
 (0)
0