我正在尝试使用导出图表的 htmlmpld3
import matplotlib.pyplot as plt, mpld3
obj, = plt.plot([3,1,4,1,5], 'ks-', mec='w', mew=5, ms=20)
mpld3.save_html(obj,'C:\\Users\\prabhat.mishra\\Desktop\\figure.html')
面临的问题为AttributeError: 'Line2D' object has no attribute 'canvas