Skip to content
Plotly templates

Physics — Plot: Projectile Trajectory

Parabolic path of a projectile under gravity.

Template previewPlotly
Rendering…

Make it your own.

{
  "data": [
    {"type":"scatter","mode":"lines","name":"trajectory","line":{"color":"#ea580c","width":3},
     "x":[0,2,4,6,8,10,12,14,16,18,20],
     "y":[0,1.8,3.2,4.2,4.8,5,4.8,4.2,3.2,1.8,0]}
  ],
  "layout": {"title":"Projectile trajectory","xaxis":{"title":"horizontal distance (m)"},"yaxis":{"title":"height (m)"}}
}