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

Skip to content

Image watermark hidden by Axes in example #7265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
anntzer opened this issue Oct 13, 2016 · 0 comments
Closed

Image watermark hidden by Axes in example #7265

anntzer opened this issue Oct 13, 2016 · 0 comments
Labels
Difficulty: Easy https://matplotlib.org/devdocs/devel/contribute.html#good-first-issues Documentation
Milestone

Comments

@anntzer
Copy link
Contributor

anntzer commented Oct 13, 2016

Compare http://matplotlib.org/devdocs/examples/api/watermark_text.html and http://matplotlib.org/devdocs/examples/api/watermark_image.html. The text watermark is overlayed on top of the axes -- as one would expect for a watermark. The image watermark is below the axes, which sort of defeats the purpose of a watermark (IMO).

A quick fix could be just to add zorder=10 (or whatever large number) to the call to figimage, in order to draw the watermark on top of everything else. Perhaps a better option (I don't actually know whether that's possible, or whether that would actually make a difference) would be to set the background of the axes to be transparent, so that it is drawn on top of the watermark but the white parts don't hide it -- perhaps the masking behavior of the orange semitransparent markers will differ depending on whether they're drawn below or above?

@NelleV NelleV added the Difficulty: Easy https://matplotlib.org/devdocs/devel/contribute.html#good-first-issues label Oct 13, 2016
@tacaswell tacaswell added this to the 2.0.1 (next bug fix release) milestone Oct 13, 2016
AndersonDaniel added a commit to AndersonDaniel/matplotlib that referenced this issue Oct 15, 2016
tacaswell added a commit that referenced this issue Oct 16, 2016
DOC: Fix image watermark example where image was hidden by axes

close #7265
@QuLogic QuLogic modified the milestones: 2.0 (style change major release), 2.0.1 (next bug fix release) Dec 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty: Easy https://matplotlib.org/devdocs/devel/contribute.html#good-first-issues Documentation
Projects
None yet
Development

No branches or pull requests

4 participants