Skip to content

[ENH]: align_titles #22376

Closed
Closed
@anntzer

Description

@anntzer

Problem

There's align_xlabels and align_ylabels to align the x and y labels, but no align_titles; this would be useful e.g. for

from pylab import *
fig, axs = subplots(1, 2, subplot_kw={"xlabel": "x", "ylabel": "y", "title": "t"})
axs[0].imshow(zeros((3, 5)))
axs[1].imshow(zeros((5, 3)))
fig.align_labels()

test

Proposed solution

Add Figure.align_titles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good first issueOpen a pull request against these issues if there are no active ones!New feature

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions