Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b5d28f3

Browse files
authored
Merge pull request #7273 from AndersonDaniel/fix-image-watermark-example
DOC: Fix image watermark example where image was hidden by axes close #7265
2 parents 389a7ed + 435c656 commit b5d28f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/api/watermark_image.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
"""
2+
Watermark image example
3+
24
Use a PNG file as a watermark
35
"""
46
from __future__ import print_function
@@ -16,6 +18,6 @@
1618

1719
ax.plot(np.random.rand(20), '-o', ms=20, lw=2, alpha=0.7, mfc='orange')
1820
ax.grid()
19-
fig.figimage(im, 10, 10)
21+
fig.figimage(im, 10, 10, zorder=3)
2022

2123
plt.show()

0 commit comments

Comments
 (0)