import matplotlib.pyplot as plt

#1
grid_spec = {'hspace':0.3, 'wspace':0.2}

#2
fig, axes = plt.subplots(nrows=3, ncols=2, gridspec_kw=grid_spec)

text_settings = {'x':0.5, 'y':0.5, 'fontsize':'xx-large', 
                 'horizontalalignment' : 'center'}

for idx, ax in enumerate(axes.flatten()):
    ax.text(s = f'Axis {idx}', **text_settings)

fig.savefig('charts/generate-figure-and-axes.png')
