MCPcopy 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
209def _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
vminMethod · 0.85
vmaxMethod · 0.85
vminMethod · 0.85
vmaxMethod · 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…