Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import plotly.plotly as py
- import plotly.graph_objs as go
- random_x = [1, 2, 3, 4, 5]
- random_y = [5, 4, 3, 2, 1]
- # Create a trace
- trace = go.Scatter(
- x = random_x,
- y = random_y,
- mode = 'markers'
- )
- data = [trace]
- # Plot and embed in ipython notebook!
- py.iplot(data, filename='basic-scatter')
- # or plot with: plot_url = py.plot(data, filename='basic-line')
Advertisement
Add Comment
Please, Sign In to add comment