Common title to many subplots in Matplotlib

PythonMatplotlib

Python Problem Overview


I am making a chart in matplotlib and I have many subplots in it each of them with a different title, but on the top I also want to a put a title to the whole chart. How this can be done?

Python Solutions


Solution 1 - Python

You can use the pyplot.suptitle command to add a centered title to the figure in addition to sub plot titles.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionlovespeedView Question on Stackoverflow
Solution 1 - PythonChrisView Answer on Stackoverflow