我正在尝试使用matplotlib xkcd函数,按照这个链接安装所需的所有东西。但每次都遇到以下问题:
Traceback (most recent call last):
File "graph.py", line 4, in <module>
plt.xkcd()
AttributeError: 'module' object has no attribute 'xkcd'
我将代码保存为graph.py。
你有什么想法,可能出了什么问题?