the title is moved vertically by y
, yet if figheight changes the title is not at constant distance/padding to the xaxis:
fig, axs = plt.subplots(1,1, figsize=(15,2.5*1.5))
axs.set_title("mytitle", fontsize=14, y=-0.2, ha='center')
so on increased figheight it moves away:
also i tried :
axs.set_title("mytitle", fontsize=14, va='bottom', ha='center')
without re-location (stays at top) and the fontdict-form, no change:
axs.set_title('my_title', fontdict={'fontsize': 20, 'verticalalignment': 'bottom', 'horizontalalignment': 'center'})
EDIT
titles are just texts which i use instead now, its modular:
axs.text(0.5,1,'some_title', va='bottom', ha='center', transform=axs.transAxes, color='k', fontsize=15, bbox={'facecolor':'white', 'edgecolor':'white', 'alpha':1, 'pad':10})
more at text cmds.