MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / clamp

Function clamp

lib/matplotlib/_mathtext.py:1730–1731  ·  view source on GitHub ↗
(value: float)

Source from the content-addressed store, hash-verified

1728 node.render(*args)
1729
1730 def clamp(value: float) -> float:
1731 return -1e9 if value < -1e9 else +1e9 if value > +1e9 else value
1732
1733 def hlist_out(box: Hlist) -> None:
1734 nonlocal cur_v, cur_h

Callers 2

hlist_outFunction · 0.85
vlist_outFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…