stairs
Stairs plot — like step but with the stems shown.
Syntax
Section titled “Syntax”h = stairs(y, ...)h = stairs(x, y, ...)Description
Section titled “Description”Similar to step but draws both horizontal segments and connecting vertical lines, producing a stairs / staircase pattern.
Example
Section titled “Example”stairs(1:10, randn(1, 10))