You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 ofPlotting → changing
y
parameter ofax.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 onmatplotlib
's API, but I wonder ifcbook.Grouper
could do this.FYI, I know there is a way to align titles using
subfigures
andsuptitles
. But I would prefer not to convert subplots to subfigures only to align titles.The text was updated successfully, but these errors were encountered: