release 1.7.1

* fix bug with zero values in tooltip
- removed error label
This commit is contained in:
arcan1s
2014-04-02 23:48:44 +04:00
parent d63b33903a
commit 20c2a4eb6b
3 changed files with 5 additions and 5 deletions

View File

@ -48,7 +48,10 @@ class Tooltip():
bound[0] = value
elif (value > bound[1]):
bound[1] = value
norm = [maxOne[0] / len(values[type]), maxOne[1] / (1.5*(bound[1] - bound[0]))]
if ((bound[0] == 0.0) and (bound[0] == 0.0)):
norm = [maxOne[0] / len(values[type]), maxOne[1] / 1.5]
else:
norm = [maxOne[0] / len(values[type]), maxOne[1] / (1.5*(bound[1] - bound[0]))]
pen.setColor(QColor(colors[type]))
if (down):
shift = (types.index(type) - 1) * maxOne[0]