Skip to content

ENH: Add rcParams for figure.suptitle defaults - #31098

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

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

Conversation

@RamiNoodle733

Copy link
Copy Markdown

Add new rcParams to control the default behavior of Figure.suptitle():

  • figure.titleloc: horizontal location ('center', 'left', 'right')
  • figure.titleh: vertical position in figure coordinates
  • figure.titleva: vertical alignment ('top', 'center', 'bottom', 'baseline')

This allows users to set default values via rcParams instead of passing them every time suptitle() is called. For example, users who want left-aligned figure titles can now set 'figure.titleloc: left' in their matplotlibrc file.

Fixes #24090

Add new rcParams to control the default behavior of Figure.suptitle():
- figure.titleloc: horizontal location ('center', 'left', 'right')
- figure.titleh: vertical position in figure coordinates
- figure.titleva: vertical alignment ('top', 'center', 'bottom', 'baseline')

This allows users to set default values via rcParams instead of
passing them every time suptitle() is called.

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