MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / addYMark

Method addYMark

graphs/gui/canvasPanel.py:221–233  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

219 yMarks = set()
220
221 def addYMark(val):
222 if val is None:
223 return
224 # Round according to shown Y range - the bigger the range,
225 # the rougher the rounding
226 if yDiff != 0:
227 rounded = roundToPrec(val, 4, nsValue=yDiff)
228 else:
229 rounded = val
230 # If due to some bug or insufficient plot density we're
231 # out of bounds, do not add anything
232 if minY <= val <= maxY or minY <= rounded <= maxY:
233 yMarks.add(rounded)
234
235 for source, target in iterList:
236 xs, ys = plotData[(source, target)]

Callers

nothing calls this directly

Calls 1

roundToPrecFunction · 0.85

Tested by

no test coverage detected