Skip to content

Commit eac808b

Browse files
committed
Fix stairs(y)
1 parent 302d9d8 commit eac808b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/unicode_plot/interface/stairs.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module UnicodePlot
5656
end
5757

5858
def stairs(y : Array(Float64), **kwargs) : Plot
59-
stairs((0...y.size).map(&.to_f), y, **kwargs)
59+
stairs((1..y.size).map(&.to_f), y, **kwargs)
6060
end
6161

6262
def stairs(y : Array(Number), **kwargs) : Plot

0 commit comments

Comments
 (0)