Skip to content

Commit c1a1e76

Browse files
committed
changed min step to .1
1 parent 38ca53b commit c1a1e76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bashplotlib/utils/helpers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def printcolor(txt, sameline=False, color=get_colour("white")):
2929

3030
def drange(start, stop, step=1.0):
3131
"generate between 2 numbers w/ optional step"
32+
if step==0:
33+
step = 0.01
3234
r = start
3335
while r < stop:
3436
yield r

0 commit comments

Comments
 (0)