Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug]: Constrained layout causes two windows to appear instead of one #30012

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DominikDeak opened this issue May 5, 2025 · 1 comment
Closed

Comments

@DominikDeak
Copy link

Bug summary

When calling pyplot.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 python3

import matplotlib.pyplot as pyplot

figure = pyplot.figure( figsize = ( 6, 4 ) )
pyplot.subplots( layout = "constrained" )
pyplot.show()

Actual outcome

Image

Expected outcome

Image

Additional information

Commenting out the line with pyplot.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

@DominikDeak
Copy link
Author

Apologies, this is user error.

@rcomer rcomer closed this as not planned Won't fix, can't repro, duplicate, stale May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants