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 as not planned
Description
Bug summary
When callingpyplot.subplots( layout = "constrained" )
after creating a figure causes matplotlib to display two windows instead of one. See minimal code below.
Code for reproduction
#!/usr/bin/env python3importmatplotlib.pyplotaspyplotfigure=pyplot.figure(figsize= (6,4 ) )pyplot.subplots(layout="constrained" )pyplot.show()
Actual outcome
Expected outcome

Additional information
Commenting out the line withpyplot.subplots( layout = "constrained" )
will display only one window as expected.
Operating system
macOS
Matplotlib Version
3.10.1
Matplotlib Backend
macosx
Python version
Python 3.13.2
Jupyter version
No response
Installation
pip
Metadata
Metadata
Assignees
Labels
No labels