ax set title code example
Example 1: set axis title matplotlib
fig.suptitle('test title', fontsize=20)
plt.xlabel('xlabel', fontsize=18)
plt.ylabel('ylabel', fontsize=16)
Example 2: set title matplotlib
import matplotlib.pyplot as plt
fig, axs = plt.subplots(1, 2)
axs[0].set_title('TITLE1')
Example 3: ax.title
Axes.set_title(self, label, fontdict=None, loc='center', pad=None, **kwargs)