Round to 0 to avoid showing too small numbers in scientific representation

This commit is contained in:
DarkPhoenix
2019-08-16 00:55:29 +03:00
parent 73f75fb44e
commit 302975c243

View File

@@ -217,7 +217,11 @@ class GraphCanvasPanel(wx.Panel):
# If due to some bug or insufficient plot density we're
# out of bounds, do not add anything
if minY <= val <= maxY:
yMarks.add(roundToPrec(val, 4))
if abs(val) < 0.0001:
val = 0
else:
val = roundToPrec(val, 4)
yMarks.add(val)
for source, target in iterList:
xs, ys = plotData[(source, target)]