mkaz / termgraph

a python command-line tool which draws basic graphs in the terminal
MIT License
3.15k stars 164 forks source link

Fixing AttributeError: type object 'Colors' has no attribute 'black' #99

Closed cmuck closed 1 year ago

cmuck commented 2 years ago

Fixing the below exception when the value 0.0 is plotted

  File "/home/cmuck/Documents/Isas-script/venv/lib/python3.8/site-packages/termgraph/module.py", line 327, in print_row
    sys.stdout.write(f"\033[{Colors.black}m")  # dark gray
AttributeError: type object 'Colors' has no attribute 'black'