[Bug]: rcParam tk.window_focus: True
is causes crash on Linux in version 3.9.0.
#28374
Milestone
tk.window_focus: True
is causes crash on Linux in version 3.9.0.
#28374
Bug summary
Setting
tk.window_focus
toTrue
inmatplotlibrc
ormatplotlib.rcParams
causes a crash when plotting on a Linux system with matplotlib 3.9.0.Code for reproduction
Actual outcome
No plot is produced, and a
TypeError
is thrown with the following traceback:Expected outcome
The following figure is produced with the same code using matplotlib 3.8.4:
Additional information
The bug occurs in Linux with matplotlib 3.9.0, when
tk.window_focus
isTrue
inmatplotlibrc
ormatplotlib.rcParams
. The appropriate plot is produced if either of these conditions is changed, i.e. both of the following produce the correct plot:tk.window_focus: True
tk.window_focus: False
I think the bug is related to 0097b02, though I'm not quite sure how to fix it.
Operating system
Arch Linux
Matplotlib Version
3.9.0
Matplotlib Backend
tkagg
Python version
Python 3.12.3
Jupyter version
No response
Installation
pip
The text was updated successfully, but these errors were encountered: