(self, x, low=0, high=1)
return self.palette[x]
Return an RGB triplet (as np.ndarray) corresponding to value x.
        x may also be nan.
Return an RGB triplet (as np.ndarray) corresponding to value x.
        x may also be nan.
Return an RGB triplet ( as np . ndarray ) corresponding to value x . x may also be nan .
def value_to_color(self, x, low=0, high=1):
        """
        Return an RGB triplet (as np.ndarray) corresponding to value x.
        x may also be nan.
        """
        x = self._color_index(x, low, high)
        if x == -1:
            return NAN_COLOR
        return self.palette[x]
def value_to_color ( self , x , low = 0 , high = 1 ) : x = self . _color_index ( x , low , high ) if x == - 1 : return NAN_COLOR return self . palette [ x ]