解决python matplotlib绘图报错AttributeError: module ‘backend_interagg‘ has no attribute ‘FigureCanvas‘

解决方法

绘图前导入如下

import matplotlib
matplotlib.use('TkAgg')

你可能感兴趣的:(matplotlib)