Skip to content

[ENH]: Configureable default padding around figure when using constrained_layout #27584

Open
@ecciv

Description

@ecciv

Problem

Constrained layout figures fill out their frames too well, and adding padding during savefig makes the figures no longer adhere to the figsize given in my stylesheet, and isn't a by-default configured amount of padding. When these figures will be used (sometimes two half page-width figures side by side) in my latex document, the contents sit way too close. I don't want to change spacing within the subplot group -- that's all fine, I just want constrained layout to add space around the figure (incl. labels and maybe titles) while respecting the outer figure dimensions.

Proposed solution

Add padding arguments to rcParams so that they may be configured on a stylesheet. These padding arguments should not influence the spacing of elements within the figure -- only around the figure.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions