-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix image watermark example where image was hidden by axes (#7265) #7273
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
Fix image watermark example where image was hidden by axes (#7265) #7273
Conversation
Hi @AndersonDaniel There's a lot of things that are confusing in matplotlib, whether you are advanced or a beginner. A lot of the choices where made a very long time ago and the context was different 10 - 15 years ago than it is now. I was wondering if you had a little more courage and if you could also add a bit of documentation to this example, using a docstring at the top of the file to be sphinx-gallery compatible. It's just a docstring with a title and a small text description, with a blank line between the title and the description. |
Note: this closes #7265 |
@NelleV Thanks for the quick response! |
Thanks! That looks good! |
@AndersonDaniel Thanks and congratulations on your first mpl contribution 🎉 Did you find this issue via the 'new-contributor-friendly' label? |
DOC: Fix image watermark example where image was hidden by axes close #7265
backported to v2.x as 421327d |
Thanks @tacaswell ! Yes, I found it through both that label and "Difficulty: Easy" |
Hi!
I'm new to matplotlib and would be happy to contribute if I can.

Did as @anntzer suggested in the issue (only with
zorder=3
like in the Text class) and of course it worked:I was also wondering why FigureImage has
zorder=0
by default, doesn't that mean images drawn on figures will always be hidden by the axes (unless thezorder
argument is explicitly set)?Another thing that could be a bit confusing is that the example passes the
zorder
keyword argument tofigimage
even though it's only intercepted by the constructor of Artist class (and thus doesn't appear infigimage
's docs)... Then again maybe it's only confusing for new people :)Thanks!