NameError: name 'set_title' is not defined code example Example: subplots titles ax[i].title.set_text('First Plot') plt.show()