A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://sphinx-gallery.github.io/stable/auto_examples/plot_4b_provide_thumbnail.html below:

Providing a figure for the thumbnail image — Sphinx-Gallery 0.19.0-git documentation

Note

Go to the end to download the full example code. or to run this example in your browser via JupyterLite or Binder

Providing a figure for the thumbnail image#

This example demonstrates how to provide a figure that is displayed as the thumbnail. This is done by specifying the keyword-value pair sphinx_gallery_thumbnail_path = 'fig path' as a comment somewhere below the docstring in the example file. In this example, we specify that we wish the figure demo.png in the folder _static to be used for the thumbnail.

import matplotlib.pyplot as plt
import numpy as np

# sphinx_gallery_thumbnail_path = '_static/demo.png'
Plot 1# Plot 2#

Total running time of the script: (0 minutes 1.790 seconds)

Estimated memory usage: 193 MB

Gallery generated by Sphinx-Gallery


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4