J4y J4y - 2 months ago 16
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

Answer

using

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