ZhangZhihui's Blog  

Errors:

RuntimeError: main thread is not in main loop
Tcl_AsyncDelete: async handler deleted by the wrong thread

 

Solution:

import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
posted on 2020-05-29 17:27  ZhangZhihuiAAA  阅读(2387)  评论(0编辑  收藏  举报