Skip to content

Instantly share code, notes, and snippets.

@stephengruppetta
Created November 22, 2023 23:16
Show Gist options
  • Save stephengruppetta/77ce5989611ab7e3c28dbdc87b225de2 to your computer and use it in GitHub Desktop.
Save stephengruppetta/77ce5989611ab7e3c28dbdc87b225de2 to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
image = plt.imread("gardens.jpg")
# Create a figure
fig, axs = plt.subplot_mosaic(
[
["colour", "colour", "colour"],
["colour", "colour", "colour"],
["colour", "colour", "colour"],
["red", "green", "blue"],
]
)
axs["colour"].imshow(image)
axs["colour"].axis("off")
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment