(self, column, values)
Set extremes for columnn's ratio bars from values
Set extremes for columnn's ratio bars from values
Set extremes for columnn s ratio bars from values
def setExtremesFrom(self, column, values):
        """Set extremes for columnn's ratio bars from values"""
        try:
            with warnings.catch_warnings():
                warnings.filterwarnings(
                    "ignore", ".*All-NaN slice encountered.*", RuntimeWarning)
                vmin = np.nanmin(values)
            if np.isnan(vmin):
                raise TypeError
        except TypeError:
            vmin, vmax = -np.inf, np.inf
        else:
            vmax = np.nanmax(values)
        self._extremes[column] = (vmin, vmax)
def setExtremesFrom ( self , column , values ) : try : with warnings . catch_warnings ( ) : warnings . filterwarnings ( "ignore" , ".*All-NaN slice encountered.*" , RuntimeWarning ) vmin = np . nanmin ( values ) if np . isnan ( vmin ) : raise TypeError except TypeError : vmin , vmax = - np . inf , np . inf else : vmax = np . nanmax ( values ) self . _extremes [ column ] = ( vmin , vmax )