Skip to content
Plotly templates

Physics — Two Decay Half-Lives

Comparing a short and a long half-life.

Template previewPlotly
Rendering…

Make it your own.

{
  "data": [
    {"type":"scatter","mode":"lines","name":"short half-life","line":{"color":"#dc2626","width":3},
     "x":[0,1,2,3,4,5,6,7,8,9,10],
     "y":[100,50,25,12.5,6.25,3.1,1.6,0.8,0.4,0.2,0.1]},
    {"type":"scatter","mode":"lines","name":"long half-life","line":{"color":"#2563eb","width":3},
     "x":[0,1,2,3,4,5,6,7,8,9,10],
     "y":[100,84,71,59,50,42,35,30,25,21,18]}
  ],
  "layout": {"title":"Radioactive decay: two half-lives","xaxis":{"title":"time (units)"},"yaxis":{"title":"remaining (%)"}}
}