plt.subplots main title and axes titles code example Example: matplotlib subplots title fig.suptitle('This is a somewhat long figure title', fontsize=16)