maxnoe/python-plotting

line 80: division by zero

Closed this issue · 3 comments

In line 80, there's a "1/3" which python evaluates as 0, yielding a division by zero. It should be "1/3.".

I use python 3, where not noted differently.

Also: which file exactly?

Ok, I understand. I didn't know about this difference between python2 and python3.
The file was
python-plotting/source/create_pi_labels.py
in Line 82
create_pi_labels(-1, 2, 1/3, ax, 'x')
sets step to zero then in Line 20
max_denominator = int(1/step)
throws the exception.