termgraph icon indicating copy to clipboard operation
termgraph copied to clipboard

Fix `math domain error` when value is 0

Open frankbryce opened this issue 4 years ago • 2 comments

math.log(0) is undefined, and I think the tool should allow values of 0 in bar charts. This is currently causing issues.

frankbryce avatar Nov 24 '21 18:11 frankbryce

FYI, I tried running this, I get another error due to this line: https://github.com/mkaz/termgraph/blob/09e17cc3510b62969fc12075dd698817357a5a93/termgraph/module.py#L327

jbordoe avatar Jan 28 '22 09:01 jbordoe

I can confirm the color black error

tian2992 avatar Jul 08 '22 17:07 tian2992