Skip to content
Plotly templates

Math — Plot: Parametric Circle

x = cos t, y = sin t traces a unit circle.

Template previewPlotly
Rendering…

Make it your own.

{
  "data": [
    {"type":"scatter","mode":"lines","name":"(cos t, sin t)","line":{"color":"#db2777","width":3},
     "x":[1,0.71,0,-0.71,-1,-0.71,0,0.71,1],
     "y":[0,0.71,1,0.71,0,-0.71,-1,-0.71,0]}
  ],
  "layout": {"title":"Parametric circle","xaxis":{"title":"x","scaleanchor":"y"},"yaxis":{"title":"y"}}
}