Check out example codes for "subplots titles". It will help you in understanding the concepts better.

Code Example 1

ax[i].title.set_text('First Plot')
plt.show()

Learn ReactJs, React Native from akashmittal.com