Reputation: 112
I am trying to get the matplotlib xkcd function working, following this after installing all the necessary stuff. http://matplotlib.org/xkcd/examples/showcase/xkcd.html
every time I get this:
Traceback (most recent call last):
File "graph.py", line 4, in <module>
plt.xkcd()
AttributeError: 'module' object has no attribute 'xkcd'
(I saved the code as graph.py)
Any ideas what could be going wrong?
Upvotes: 4
Views: 985
Reputation: 50610
The xkcd
module was added in matplotlib 1.3.1. You need to update your version to that to get the xkcd examples to work properly.
Upvotes: 5