Created
May 22, 2017 16:12
-
-
Save lgeiger/cdd7b95c7fbed946ac98bbdafd1185fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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