MCPcopy Index your code
hub / github.com/pydata/xarray / _determine_extend

Function _determine_extend

xarray/plot/utils.py:61–71  ·  view source on GitHub ↗
(calc_data, vmin, vmax)

Source from the content-addressed store, hash-verified

59
60
61def _determine_extend(calc_data, vmin, vmax):
62 extend_min = calc_data.min() < vmin
63 extend_max = calc_data.max() > vmax
64 if extend_min and extend_max:
65 return "both"
66 elif extend_min:
67 return "min"
68 elif extend_max:
69 return "max"
70 else:
71 return "neither"
72
73
74def _build_discrete_cmap(cmap, levels, extend, filled):

Callers 1

_determine_cmap_paramsFunction · 0.85

Calls 2

minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…