matplotlib title

import matplotlib.pyplot as plt

plt.title('TITLE')

Here is what the above code is Doing:
1. We’re creating a figure object called fig.
2. We’re adding an Axes object to that figure.
3. We’re setting the title of that Axes object to ‘TITLE’.

We can also add a subplot to a figure.