MCPcopy Create free account
hub / github.com/antirez/ds4 / fmt_tick

Function fmt_tick

speed-bench/plot_speed.py:52–55  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

50
51
52def fmt_tick(value):
53 if abs(value) >= 1000:
54 return f"{value / 1000:g}k"
55 return f"{value:g}"
56
57
58def read_points(path):

Callers 1

render_svgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected