Skip to content
Plotly templates

Math — Plot: Logistic (Sigmoid) Function

The standard logistic curve 1/(1+e^-x).

Template previewPlotly
Rendering…

Make it your own.

{
  "data": [
    {"type":"scatter","mode":"lines","name":"sigmoid","line":{"color":"#db2777","width":3},
     "x":[-6,-4,-2,-1,0,1,2,4,6],
     "y":[0.0025,0.018,0.119,0.269,0.5,0.731,0.881,0.982,0.9975]}
  ],
  "layout": {"title":"Logistic function","xaxis":{"title":"x"},"yaxis":{"title":"sigma(x)"}}
}