def __call__(self, data, *args, **kwargs):
        kw = dict(kwargs)
        alpha     = kw.setdefault('alpha', None)
        normalize = kw.setdefault('normalize', None)
        bytes     = kw.setdefault('bytes', self.bytes)
        data, shape = self._input_to_data(data, normalize)
        if alpha is not None:
            alpha = np.clip(alpha, 0., 1.)
        mask_bad   = np.logical_not(np.isfinite(data))
        mask_under = data < 0
        mask_over  = data > 1
        mask = np.logical_not(
            np.logical_or(
                np.logical_or(
                    mask_bad, 
                    mask_under),
                mask_over))
        out = self._get_out(data, mask, *args, **kw)

        # SIMPLE TREATMENT FOR INVALID/LOW/HIGH DATA
        if self._rgba_under is None:
            self._rgba_under = self._default_color(0., *args, **kw)
        if self._rgba_over is None:
            self._rgba_over = self._default_color(1., *args, **kw)
        out[mask_under,:] = self._rgba_under
        out[mask_over ,:] = self._rgba_over
        if alpha is not None:
            out[:,-1] = alpha
        out[mask_bad  ,:] = self._rgba_bad

        return self._return(out, shape, bytes)
Register a matcher associated to one or more aliases. Each alias
dataset/ETHPy150Open yhat/ggplot/ggplot/utils/color.py/Color.__call__--crossover with--dataset/ETHPy150Open drslump/pyshould/pyshould/matchers.py/register