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

[Bug]: plt.tight_layout() after layout='constrained' should at least warn #24387

Closed
Milestone
@jklymak

Description

@jklymak

If a user does something like

fig,axs=plt.subplots(2,2,layout='constrained')..plt.tight_layout()

tight_layout is called, andconstrained_layout is ignored. This was originally done becauseconstrained_layout was experimental. However, people seem to thinkconstrained_layout is not working because they have copy-and-pasted, or reflexively addedplt.tight_layout.

I'd propose that we at least warn ifplt.tight_layout is called on a figure with an active layout manager. I'd also be open to this being an error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp