Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/matplotlib/matplotlib
/ _sanitize_extrema
Function
_sanitize_extrema
lib/matplotlib/colors.py:209–216 ·
view source on GitHub ↗
(ex)
Source
from the content-addressed store, hash-verified
207
208
209
def
_sanitize_extrema(ex):
210
if
ex is None:
211
return
ex
212
try
:
213
ret = ex.item()
214
except
AttributeError:
215
ret = float(ex)
216
return
ret
217
218
_nth_color_re = re.compile(r
"\AC[0-9]+\Z"
)
219
Callers
5
__init__
Method · 0.85
vmin
Method · 0.85
vmax
Method · 0.85
vmin
Method · 0.85
vmax
Method · 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…