Closed Dantara closed 4 years ago
The plot function throws Error in array index in case of zero or one element in the list in its argument.
plot
Error in array index
Also, the same error will be thrown if all elements are equal. Example: plot [1,1,1,1].
plot [1,1,1,1]
Fixed in https://github.com/madnight/asciichart/commit/49cc4108149b0f782dba455809191302b9252bee
Thx for report!
The
plot
function throwsError in array index
in case of zero or one element in the list in its argument.