add title for each subplot code example
Example 1: subplots titles
ax[i].title.set_text('First Plot')
plt.show()
Example 2: title subplot
import matplolib.pyplot as plt
for i in range(4):
plt.subplot(2,2,i+1).set_title('Subplot n°{}' .format(i+1))
plt.show()