Skip to content

[Bug]: macOS Tahoe (v26) MacOSX backend leaves "ghost" window #31106

@TheSkyentist

Description

@TheSkyentist

Bug summary

On macOS 26 (Tahoe), using the native MacOSX backend in an interactive shell causes the window to persist in the system's window server after it has been closed. While the window content disappears, a blank "ghost" space remains visible in Mission Control and is still detected/managed by tiling window managers (like Yabai).

The window only fully disappears once the Python process (the shell) is terminated.

I have tested with older versions of matplotlib and Python and this began to happen on macOS 26. This does not happen on my linux machine.

Code for reproduction

import matplotlib
from matplotlib import pyplot

matplotlib.rcdefaults()
pyplot.plot()
pyplot.show()

Actual outcome

mpl_bug.mov

Expected outcome

The window should disappear.

Additional information

No response

Operating system

MacOS 26.2

Matplotlib Version

3.11.0.dev1745+geb7c4cebd

Matplotlib Backend

MacOSX

Python version

3.14.2

Jupyter version

No response

Installation

pixi

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions