Skip to content
Plotly templates

Math — Plot: Normal Distributions

Two normal curves with different standard deviations.

Template previewPlotly
Rendering…

Make it your own.

{
  "data": [
    {"type":"scatter","mode":"lines","name":"sigma = 1","line":{"color":"#2563eb","width":3},
     "x":[-4,-3,-2,-1,0,1,2,3,4],"y":[0.0001,0.0044,0.054,0.242,0.399,0.242,0.054,0.0044,0.0001]},
    {"type":"scatter","mode":"lines","name":"sigma = 2","line":{"color":"#db2777","width":3},
     "x":[-4,-3,-2,-1,0,1,2,3,4],"y":[0.027,0.065,0.121,0.176,0.199,0.176,0.121,0.065,0.027]}
  ],
  "layout": {"title":"Effect of standard deviation","xaxis":{"title":"x"},"yaxis":{"title":"density"}}
}