J4y J4y - 1 month ago 4x
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')