import numpy as np
from komorebi_browser import show_plot

t = np.linspace(0, 4*np.pi, 201)
show_plot([{"type": "scatter3d", "mode": "lines", "name": "Helix",
            "x": np.cos(t), "y": np.sin(t), "z": t/(2*np.pi),
            "line": {"width": 6, "color": "#18563d"}}],
          {"title": {"text": "Two turns of a helix"},
           "scene": {"xaxis": {"title": {"text": "cos(t)"}},
                     "yaxis": {"title": {"text": "sin(t)"}},
                     "zaxis": {"title": {"text": "t / (2π)"}}}},
          description="A helix makes two turns around the vertical axis while rising from height zero to two.")
print("Helix samples:", len(t))
