kressi / terminalplot

GNU General Public License v3.0
49 stars 5 forks source link

Compatible with Python 3 #1

Closed florentx closed 9 years ago

florentx commented 9 years ago

The map built-in in Python 3 returns a <map object>, and it crashes with a ValueError.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "./terminalplot/terminalplot.py", line 21, in plot
    (max(y) - min(y)) if y and max(y) - min(y) != 0 else rows
ValueError: min() arg is an empty sequence
kressi commented 9 years ago

thank you