Skip to content

ENH: Add figure.titleloc rcParam for suptitle horizontal alignment - #31099

Closed
RamiNoodle733 wants to merge 1 commit into
matplotlib:mainfrom
RamiNoodle733:figure-suptitle-rcparams
Closed

RamiNoodle733 wants to merge 1 commit into
matplotlib:mainfrom
RamiNoodle733:figure-suptitle-rcparams

Conversation

@RamiNoodle733

Copy link
Copy Markdown

This PR fixes #24090 by adding a new rcParam figure.titleloc to control the default horizontal alignment of figure.suptitle().

Changes:

  • Added 'figure.titleloc' rcParam with options ['center', 'left', 'right']
  • Updated suptitle() to use rcParams['figure.titleloc'] for horizontal alignment
  • Added documentation in matplotlibrc file

This allows users to set the default alignment via rcParams, similar to how axes.titlelocation works for axis titles.

Add new rcParams['figure.titleloc'] to control the default horizontal
alignment of figure.suptitle(). This allows users to set the default
alignment (center, left, or right) via rcParams, similar to how
axes.titlelocation works for axis titles.

Fixes #24090
@timhoffm

timhoffm commented Feb 6, 2026

Copy link
Copy Markdown
Member

We strictly reject mass PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ENH]: Add default kwargs values if figure.suptitle(t, **kwargs) to rcParams and inherit from there.

2 participants