(self, x)
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):
        """
        Return a QColor corresponding to value x. x may also be nan.
        """
        color = self.nan_color if np.isnan(x) else self.palette[int(x)]
        return QColor(*color)
def value_to_qcolor ( self , x ) : color = self . nan_color if np . isnan ( x ) else self . palette [ int ( x ) ] return QColor ( * color )