Skip to content

Instantly share code, notes, and snippets.

@stephengruppetta
Created November 22, 2023 23:23
Show Gist options
  • Save stephengruppetta/9ac3c66b5514f3331d636e08e788fa8d to your computer and use it in GitHub Desktop.
Save stephengruppetta/9ac3c66b5514f3331d636e08e788fa8d to your computer and use it in GitHub Desktop.
import matplotlib.pyplot as plt
# Code to create the layout
s1 = ""
s2 = ""
for s in "ABCDE":
s1 = s1 + s*3
for s in "FGH":
s2 = s2 + s*5
mosaic = s1 + "\n" + s2 + "\n" + "I"*15
fig, ax = plt.subplot_mosaic(
mosaic=mosaic
)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment