From 3f80a06c2bf3fb916cece16234dca6281326a08d Mon Sep 17 00:00:00 2001 From: AndersonDaniel Date: Sat, 15 Oct 2016 19:15:47 +0300 Subject: [PATCH 1/2] Fix image watermark example where image was hidden by axes (#7265) --- examples/api/watermark_image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/api/watermark_image.py b/examples/api/watermark_image.py index f47c32058c70..b68c7a0d046b 100644 --- a/examples/api/watermark_image.py +++ b/examples/api/watermark_image.py @@ -16,6 +16,6 @@ ax.plot(np.random.rand(20), '-o', ms=20, lw=2, alpha=0.7, mfc='orange') ax.grid() -fig.figimage(im, 10, 10) +fig.figimage(im, 10, 10, zorder=3) plt.show() From 435c65625985479d6f37cb451038b2bbea435927 Mon Sep 17 00:00:00 2001 From: AndersonDaniel Date: Sun, 16 Oct 2016 15:11:46 +0300 Subject: [PATCH 2/2] Add title to docstring for sphinx-gallery compatibility --- examples/api/watermark_image.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/api/watermark_image.py b/examples/api/watermark_image.py index b68c7a0d046b..911f97067d55 100644 --- a/examples/api/watermark_image.py +++ b/examples/api/watermark_image.py @@ -1,4 +1,6 @@ """ +Watermark image example + Use a PNG file as a watermark """ from __future__ import print_function