J4y J4y - 10 months ago 65
Python Question

How do you add an overall title to a figure with subplots in matplotlib?

I can see that you can add a title to each subplot, as discussed here:

How to add title to subplots in Matplotlib?

Is there a way to add an overall title in addition to the subplot titles?

overall title



fig = plt.figure()
fig.suptitle('this is the figure title')