Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Description
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