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

Method autoscale_None

lib/matplotlib/colors.py:2972–2977  ·  view source on GitHub ↗
(self, A)

Source from the content-addressed store, hash-verified

2970 return value[0] if is_scalar else value
2971
2972 def autoscale_None(self, A):
2973 # i.e. A[np.isfinite(...)], but also for non-array A's
2974 in_trf_domain = np.extract(np.isfinite(self._trf.transform(A)), A)
2975 if in_trf_domain.size == 0:
2976 in_trf_domain = np.ma.masked
2977 return super().autoscale_None(in_trf_domain)
2978
2979 if base_norm_cls is Normalize:
2980 ScaleNorm.__name__ = f"{scale_cls.__name__}Norm"

Callers 1

__call__Method · 0.95

Calls 2

transformMethod · 0.45
autoscale_NoneMethod · 0.45

Tested by

no test coverage detected