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]: Cannot toggle set_tight_layout #22847

Closed
Labels
topic: geometry managerLayoutEngine, Constrained layout, Tight layout
Milestone
@richardsheridan

Description

@richardsheridan

Bug summary

As of#20426 callingFigure.set_tight_layout(False) does not disable the tight layout algorithm.

Code for reproduction

frommatplotlibimportpyplotaspltfig,ax=plt.subplots()fig.set_tight_layout(True)fig.set_tight_layout(False)assertnotfig.get_tight_layout()

Actual outcome

AssertionError

Expected outcome

clean exit

Additional information

I'm pretty surethis branch just needs to setself.set_layout_engine(None) in the falsey case. Attn:@jklymak

Operating system

No response

Matplotlib Version

main

Matplotlib Backend

No response

Python version

No response

Jupyter version

No response

Installation

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: geometry managerLayoutEngine, Constrained layout, Tight layout

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp