Skip to content

Instantly share code, notes, and snippets.

@lgeiger
Created May 22, 2017 16:12
Show Gist options
  • Save lgeiger/cdd7b95c7fbed946ac98bbdafd1185fc to your computer and use it in GitHub Desktop.
Save lgeiger/cdd7b95c7fbed946ac98bbdafd1185fc to your computer and use it in GitHub Desktop.
import numpy as np
import matplotlib.pyplot as plt
from plotly import offline as py
import plotly.tools as tls
py.init_notebook_mode()
t = np.linspace(0, 10, 1000)
plt.plot(t, np.exp(-0.5 * t) * np.cos(2*np.pi*t))
plt.xlim(0, 7)
py.iplot(tls.mpl_to_plotly(plt.gcf()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment