set subplot title matplotlib code example
Example 1: matplotlib subplots title
fig.suptitle('This is a somewhat long figure title', fontsize=16)
Example 2: subplots titles
ax[i].title.set_text('First Plot')
plt.show()
fig.suptitle('This is a somewhat long figure title', fontsize=16)
ax[i].title.set_text('First Plot')
plt.show()