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) |
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
//License CC0 1.0: https://creativecommons.org/publicdomain/zero/1.0/ | |
class Deferred extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
value: '' | |
}; | |
} | |
componentDidMount() { |
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
#################################### | |
# diamond data bar chart | |
# Questions? Email [email protected] | |
# For more docs, see plot.ly/api | |
#################################### | |
library(plotly) | |
py <- plotly(username='USERNAME', key='API_KEY') | |