Advertisement
theguild42

Untitled

Oct 27th, 2019
627
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. import plotly as py
  2. import chart_studio.plotly as cs
  3. #import chart_studio.grid_objs as go
  4.  
  5. cs.sign_in(u'guest', u'guest')
  6.  
  7. import plotly.graph_objects as go
  8. import numpy as np
  9.  
  10. # Helix equation
  11. t = np.linspace(0, 10, 50)
  12. x, y, z = np.cos(t), np.sin(t), t
  13.  
  14. fig = go.Figure(data=[go.Scatter3d(x=x, y=y, z=z,
  15.                                    mode='markers')])
  16. cs.iplot(fig, filename='Helix')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement