Here is a simple example of a line plot, using the matplotlib library.
Adding a title
As you can see in the example above we don't have a title on the graph.
We can easily add a title using the axes.set_title() method.
See here we use the axes object to call the set_title() method.
Here you are ! You know know how to add a title to any plot using Matplotlib.
More on plots
If you want to know more about how to add labels, plot different types of plots, etc... checkout the other articles I wrote on the topic, just here :