Skip to content

Instantly share code, notes, and snippets.

@jdswinbank
Created December 20, 2016 15:59
Show Gist options
  • Save jdswinbank/b5b63bfdac527ae3b8ee3739c8c88c16 to your computer and use it in GitHub Desktop.
Save jdswinbank/b5b63bfdac527ae3b8ee3739c8c88c16 to your computer and use it in GitHub Desktop.
In [1]: import matplotlib
In [2]: matplotlib.cm
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-2-d4848939ab69> in <module>()
----> 1 matplotlib.cm
AttributeError: module 'matplotlib' has no attribute 'cm'
In [3]: import matplotlib.pyplot
In [4]: matplotlib.cm
Out[4]: <module 'matplotlib.cm' from '/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/matplotlib/cm.py'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment