Math — Plot: Step Function
A piecewise-constant staircase function.
Rendering…
Make it your own.
{
"data": [
{"type":"scatter","mode":"lines","name":"step","line":{"color":"#0891b2","width":3,"shape":"hv"},
"x":[0,1,2,3,4,5],"y":[1,2,3,4,5,6]}
],
"layout": {"title":"Step function","xaxis":{"title":"x"},"yaxis":{"title":"f(x)"}}
}