Closed
Description
Bug summary
MWE:
import matplotlib.pyplot as plt
while True:
plt.figure()
plt.close()
Either run this code and monitor the mem consumption on top, or run
mprof run test.py
mprof plot
(with memory-profiler) to get
Might be related to #22448.
Operating system
Ubuntu 22.10
Matplotlib Version
3.5.3
Matplotlib Backend
GTK4Agg
Python version
3.10.6
Jupyter version
No response
Installation
pip