Apr 26, 2023
Hey, Thai: this seems to be an actual bug, and here's a workaround!
https://stackoverflow.com/questions/74923140/matplotlib-memory-leak-using-figurecanvastkagg
EDIT: might already have been fixed: https://github.com/matplotlib/matplotlib/pull/22002