【笔记】解决UserWarning: Matplotlib is currently using agg, which is a non-GUI backend

import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt

reference:

解决UserWarning: Matplotlib is currently using agg, which is a non-GUI backend_周某某、的博客-CSDN博客

猜你喜欢

转载自blog.csdn.net/nyist_yangguang/article/details/126682948