Description
Problem
While formatting figures, along with aligning axis labels, aligning titles is often necessary. To do that, without the availability of a simple and convenient method like fig.align_labels
, I find myself going through multiple rounds of
Plotting → changing y
parameter of ax.set_title
→ replotting.
Plus the re-alignments are necessary if the figure/subplot size and layout are changed.
Could there be a simple and convenient way to align the titles of subplots, using maybe a method that is similar to fig.align_labels
?
Proposed solution
Perhaps the general method of how labels are aligned using fig.align_labels
could be extended to align titles. I am no expert on matplotlib
's API, but I wonder if cbook.Grouper
could do this.
FYI, I know there is a way to align titles using subfigures
and suptitles
. But I would prefer not to convert subplots to subfigures only to align titles.