(self, x)
return colors
Map values x to colors; values may include nan's

        Args:
            x (np.ndarray): an array of values between 0 and len(palette) - 1

        Returns:
            An array of ubytes of shape (len(x), 3), representing RGB triplets
Map values x to colors; values may include nan's
Map values x to colors ; values may include nan s
def values_to_colors(self, x):
        """
        Map values x to colors; values may include nan's

        Args:
            x (np.ndarray): an array of values between 0 and len(palette) - 1

        Returns:
            An array of ubytes of shape (len(x), 3), representing RGB triplets
        """
        x, nans = self._color_indices(x)
        colors = self.palette[x]
        colors[nans, :] = self.nan_color
        return colors
def values_to_colors ( self , x ) : x , nans = self . _color_indices ( x ) colors = self . palette [ x ] colors [ nans , : ] = self . nan_color return colors