Skip to content

Instantly share code, notes, and snippets.

@stephengruppetta
Created November 22, 2023 23:12
Show Gist options
  • Save stephengruppetta/affe31bb8b2e8e8bd1ca6d54748a7fa6 to your computer and use it in GitHub Desktop.
Save stephengruppetta/affe31bb8b2e8e8bd1ca6d54748a7fa6 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
# Create a figure with 2x2 grid
fig, axs = plt.subplot_mosaic(
[
["top_left", "top_right"],
["bottom_left", "bottom_right"]
]
)
axs["top_left"].set_title("top_left")
axs["top_right"].set_title("top_right")
axs["bottom_left"].set_title("bottom_left")
axs["bottom_right"].set_title("bottom_right")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment