I am creating a figure with subplots using:
fig, axs = plt.subplots(5, sharex=True, sharey=True, gridspec_kw={'hspace': 0})
Then I want to add a title to each subplot, but with the title inside the subplot. I tried using
for i in range(0,5):
axs[i].set_title('title = ' + str(i), pad = -15)
But this approach creates the last title again in the subplot above, for reasons I don't yet understand. I also tried appending an additional subplot, but couldn't find a convenient way to get rid of it again.
