Skip to content

Add suptitle rcparams#31394

Open
RishabhXYZA wants to merge 12 commits intomatplotlib:mainfrom
RishabhXYZA:add-suptitle-rcparams
Open

Add suptitle rcparams#31394
RishabhXYZA wants to merge 12 commits intomatplotlib:mainfrom
RishabhXYZA:add-suptitle-rcparams

Conversation

@RishabhXYZA
Copy link

Description

Adds support for rcParams in Figure.suptitle() for position and alignment.

New rcParams added:

  • figure.titlex
  • figure.titley
  • figure.titleha
  • figure.titleva

Changes

  • Updated Figure.suptitle() to use rcParams defaults
  • Added new rcParams in rcsetup.py
  • Added defaults in matplotlibrc
  • Added tests in test_figure.py

Behavior

  • rcParams are used when kwargs are not provided
  • kwargs override rcParams as expected

Fixes #24090

@github-actions
Copy link

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks. We also ask that you please finish addressing any review comments on this PR and wait for it to be merged (or closed) before opening a new one, as it can be a valuable learning experience to go through the review process.

You can also join us on gitter for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide.
Please let us know if (and how) you use AI, it will help us give you better feedback on your PR.

We strive to be a welcoming and open project. Please follow our Code of Conduct.

@melissawm melissawm moved this to Needs review in First Time Contributors Mar 26, 2026
@melissawm
Copy link
Member

Please make sure you update your PR description to include the full PR template including the AI disclosure section. Thanks

@melissawm melissawm moved this from Needs review to Waiting for author in First Time Contributors Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Waiting for author

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