Specific images
import matplotlib.pyplot as plt
import matplotlib
import skimage as ski
matplotlib.rcParams["font.size"] = 18
import matplotlib.pyplot as plt
import matplotlib
import skimage as ski
matplotlib.rcParams["font.size"] = 18
fig, axes = plt.subplots(1, 2, figsize=(8, 4))
ax = axes.ravel()
cycle_images = ski.data.stereo_motorcycle()
ax[0].imshow(cycle_images[0])
ax[1].imshow(cycle_images[1])
fig.tight_layout()
plt.show()

fig, axes = plt.subplots(ncols=2, figsize=(8, 4))
ax = axes.ravel()
vortex_images = ski.data.vortex()
ax[0].imshow(vortex_images[0])
ax[1].imshow(vortex_images[1])
fig.tight_layout()
plt.show()

A sample of 20 over 200 images is displayed.
fig, axes = plt.subplots(4, 5, figsize=(20, 20))
ax = axes.ravel()
lfw_images = ski.data.lfw_subset()
for i in range(20):
ax[i].imshow(lfw_images[90 + i], cmap=plt.cm.gray)
ax[i].axis("off")
fig.tight_layout()
plt.show()

Thumbnail image for the gallery
from matplotlib.offsetbox import AnchoredText
# Create a gridspec with two images in the first and 4 in the second row
fig, axd = plt.subplot_mosaic(
[["stereo", "stereo", "piv", "piv"

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