Skip to content

Instantly share code, notes, and snippets.

@inclement
Created November 11, 2014 21:53
Show Gist options
  • Select an option

  • Save inclement/d7c4c1c2f719dd6af21a to your computer and use it in GitHub Desktop.

Select an option

Save inclement/d7c4c1c2f719dd6af21a to your computer and use it in GitHub Desktop.
print 'n is', n
print n.log10(5)
ax1.scatter(min_cs, n.log10(determinants), s=1.5, color='blue', alpha=0.5)
==================
Output:
n is <module 'numpy' from '/usr/lib/python2.7/site-packages/numpy/__init__.pyc'>
0.698970004336
Traceback (most recent call last):
File "topologicalmethods-knottable_behaviour.py", line 42, in <module>
ax1.scatter(min_cs, n.log10(determinants), s=1.5, color='blue', alpha=0.5)
AttributeError: 'int' object has no attribute 'log10'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment