Skip to content

Instantly share code, notes, and snippets.

@nickgravish
Last active October 7, 2015 17:33
Show Gist options
  • Save nickgravish/dde61cac5be2eb9631f3 to your computer and use it in GitHub Desktop.
Save nickgravish/dde61cac5be2eb9631f3 to your computer and use it in GitHub Desktop.
Interact for matplotlib plotting, data exploration
def test_foo(k):
t = np.linspace(0,1,1000)
plt.figure(figsize=(8,2.5))
plt.plot(t, np.sin(t*k))
interact(test_foo, k=(0,1000))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment