Add gallery thumbnails for examples missing them by harshitnagar22 · Pull Request #31986 · matplotlib/matplotlib · GitHub
Skip to content

Add gallery thumbnails for examples missing them#31986

Open
harshitnagar22 wants to merge 1 commit into
matplotlib:mainfrom
harshitnagar22:fix/gallery-thumbnails
Open

Add gallery thumbnails for examples missing them#31986
harshitnagar22 wants to merge 1 commit into
matplotlib:mainfrom
harshitnagar22:fix/gallery-thumbnails

Conversation

@harshitnagar22

Copy link
Copy Markdown

Summary

Adds sphinx_gallery_thumbnail_path for multiple gallery examples that were missing thumbnails because they:

  • Use _sgskip (not executed during doc build, so no auto-generated thumbnail)
  • Don't produce standard matplotlib figures (text output, file-only saves)
  • Use animation (FuncAnimation) which doesn't produce a static frame

Changes

9 Python files modified (added sphinx_gallery_thumbnail_path comment in docstring):

File Thumbnail
galleries/examples/animation/frame_grabbing_sgskip.py _static/frame_grabbing.png
galleries/examples/event_handling/ginput_manual_clabel_sgskip.py _static/ginput_manual_clabel.png
galleries/examples/event_handling/pong_sgskip.py _static/pong.png
galleries/examples/misc/font_indexing.py _static/font_indexing.png
galleries/examples/misc/hyperlinks_sgskip.py _static/hyperlinks.png
galleries/examples/misc/multiprocess_sgskip.py _static/multiprocess.png
galleries/examples/misc/print_stdout_sgskip.py _static/print_stdout.png
galleries/examples/mplot3d/wire3d_animation.py _static/wire3d_animation.png
galleries/examples/widgets/lasso_selector_demo_sgskip.py _static/lasso_selector_demo.png

9 new thumbnail images added to doc/_static/.

Closes #17479

Add sphinx_gallery_thumbnail_path for multiple gallery examples that
were missing thumbnails because they use sgskip or don't produce
standard matplotlib figures.

Closes matplotlib#17479
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks. We also ask that you please finish addressing any review comments on this PR and wait for it to be merged (or closed) before opening a new one, as it can be a valuable learning experience to go through the review process.

You can also join us on discourse chat for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide.
Please let us know if (and how) you use AI, it will help us give you better feedback on your PR.

We strive to be a welcoming and open project. Please follow our Code of Conduct.

@timhoffm timhoffm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use our PR template, in particular state the use of AI if applicable.

Comment on lines +9 to 10
# sphinx_gallery_thumbnail_path = "_static/frame_grabbing.png"
"""

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# sphinx_gallery_thumbnail_path = "_static/frame_grabbing.png"
"""
"""
# sphinx_gallery_thumbnail_path = "_static/frame_grabbing.png"

The comment must be in the code not in the docstring.

@scottshambaugh

Copy link
Copy Markdown
Contributor

Could you take a pass through the examples and see if others are missing? For example, https://matplotlib.org/stable/gallery/mplot3d/rotate_axes3d_sgskip.html also does not have a thumbnail

@story645

story645 commented Jul 3, 2026

Copy link
Copy Markdown
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add thumbnails for tutorials/gallery where missing

4 participants