FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[Bug]: Cannot toggle set_tight_layout · Issue #22847 · matplotlib/matplotlib · GitHub

Repository navigation

[Bug]: Cannot toggle set_tight_layout #22847

Closed

Description

Bug summary

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

Code for reproduction

from matplotlib import pyplot as plt

fig, ax = plt.subplots()
fig.set_tight_layout(True)
fig.set_tight_layout(False)
assert not fig.get_tight_layout()

Actual outcome

AssertionError

Expected outcome

clean exit

Additional information

I'm pretty sure this branch just needs to set self.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

Activity

  1. added this to the v3.6.0 milestone on Apr 15, 2022
  2. modified the milestones: v3.6.0, v3.7.0 on Aug 24, 2022
  3. added 2 commits that reference this issue on Jan 10, 2023
    0e3b047
    f228949
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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


      Back | FazBrowse Home | New Git URL