(self, x, low=None, high=None)
return colors
Return an array of colors assigned to given values by the palette

        Args:
            x (np.array): colors to be mapped
            low (float or None): minimal value; if None, determined from data
            high (float or None): maximal value; if None, determined from data

        Returns:
            an array of shape (len(x), 3) with RGB values for each point
Return an array of colors assigned to given values by the palette
Return an array of colors assigned to given values by the palette
def values_to_colors(self, x, low=None, high=None):
        """
        Return an array of colors assigned to given values by the palette

        Args:
            x (np.array): colors to be mapped
            low (float or None): minimal value; if None, determined from data
            high (float or None): maximal value; if None, determined from data

        Returns:
            an array of shape (len(x), 3) with RGB values for each point
        """
        x, nans = self._color_indices(x, low, high)
        colors = self.palette[x]
        colors[nans, :] = self.nan_color
        return colors
def values_to_colors ( self , x , low = None , high = None ) : x , nans = self . _color_indices ( x , low , high ) colors = self . palette [ x ] colors [ nans , : ] = self . nan_color return colors