Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
@frank-klein-schaarsberg-wb

Description

Problem

Problem summary

I cannot change the default location of afigure.suptitle() through thercParams as I can with the title location of the axis title.

Origin/background

I am tweaking the default settings of Matplotlib to create plots that in appearance match the corporate styling. Most changes have been made by re-setting the default values of certainrcParams.

One of the requirements is the left-alignment of titles of graphs. For the axis title I can setrcParams['axes.titlelocation'] to'left', as itdefaults tocenter. I would like to do something similar to the figure's suptitle.

Currently, setting the figure's suptitle only takes defaultsrcParams['figure.titlesize'] andrcParams['figure.titleweight']. The other parameters for location and alignment of the suptitle are defaulted in the method's argument definition. My desire is to add these torcParams as well, and refer hereto as default.

Proposed solution

E.g. expand thercParams with:

{    'figure.titleloc_x': 0.5,    'figure.titleloc_y': 0.98,    'figure.titleha': 'center',    'figure.titleva': 'center'}

And then use these defaults infigure.suptitle(), very similar to howrcParams['figure.titlesize'] andrcParams['figure.titleweight'] are already used as default values.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp