Error when closing tkinter GUI with plots/sub-plots

Hello, I’m getting the below error every time i hit x to close the GUI… although i’m not explicitly calling any of the below methods/functions… thanks a lot!

invalid command name “2951484352128update”
while executing
“2951484352128update”
(“after” script)
invalid command name “2951483259520check_dpi_scaling”
while executing
“2951483259520check_dpi_scaling”
(“after” script)