You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Version 2.1.1.post1080+g0db0992
Fork me on GitHub

Related Topics

This Page

Subplot ToolbarΒΆ

Matplotlib has a toolbar available for adjusting suplot spacing.

  • ../../_images/sphx_glr_subplot_toolbar_001.png
  • ../../_images/sphx_glr_subplot_toolbar_002.png
import matplotlib.pyplot as plt
import numpy as np

fig, axs = plt.subplots(2, 2)

axs[0, 0].imshow(np.random.random((100, 100)))

axs[0, 1].imshow(np.random.random((100, 100)))

axs[1, 0].imshow(np.random.random((100, 100)))

axs[1, 1].imshow(np.random.random((100, 100)))


Gallery generated by Sphinx-Gallery