(self, x, low=0, high=1)
return QColor(*color)
Return a QColor corresponding to value x. x may also be nan.
Return a QColor corresponding to value x. x may also be nan.
Return a QColor corresponding to value x . x may also be nan .
def value_to_qcolor(self, x, low=0, high=1):
        """
        Return a QColor corresponding to value x. x may also be nan.
        """
        if np.isnan(x):
            color = self.nan_color
        else:
            x = self._color_index(x, low, high)
            color = self.palette[x]
        return QColor(*color)
def value_to_qcolor ( self , x , low = 0 , high = 1 ) : if np . isnan ( x ) : color = self . nan_color else : x = self . _color_index ( x , low , high ) color = self . palette [ x ] return QColor ( * color )