import matplotlib.pyplot as plt
from mpl_ornaments.titles import set_title_and_subtitle

grid_spec = {'hspace':0.3, 'wspace':0.4}
fig, axs = plt.subplots(nrows=2, ncols=2, gridspec_kw=grid_spec,
                        figsize=(5.5,5.5))

#1
for idx, ax in enumerate(axs.flatten()):
#2
    ax.set_title(f'Axes {idx} title')

#3
set_title_and_subtitle(fig=fig, title='Figure title', alignment='left', 
    subtitle = 'Figure subtitle', h_offset=0, v_offset=0)

fig.savefig('charts/title_and_subtitle.png', bbox_inches='tight', 
            dpi=300)