(self, min_v, max_v)
:param min_v: Minimal value
        :type min_v: float
        :param max_v: Maximal value
        :type max_v: float
:param min_v: Minimal value
        :type min_v: float
        :param max_v: Maximal value
        :type max_v: float
: param min_v : Minimal value : type min_v : float : param max_v : Maximal value : type max_v : float
def __init__(self, min_v, max_v):
        """
        :param min_v: Minimal value
        :type min_v: float
        :param max_v: Maximal value
        :type max_v: float
        """
        super().__init__()
        dif = max_v - min_v if max_v != min_v else 1
        if np.isnan(dif):
            min_v = 0
            dif = decimals = 1
        else:
            decimals = -floor(log10(dif))
        resolution = 10 ** -decimals
        bins = ceil(dif / resolution)
        if bins < 6:
            decimals += 1
            if bins < 3:
                resolution /= 4
            else:
                resolution /= 2
            bins = ceil(dif / resolution)
        self.offset = resolution * floor(min_v // resolution)
        self.bins = bins
        self.decimals = max(decimals, 0)
        self.width = resolution
def __init__ ( self , min_v , max_v ) : super ( ) . __init__ ( ) dif = max_v - min_v if max_v != min_v else 1 if np . isnan ( dif ) : min_v = 0 dif = decimals = 1 else : decimals = - floor ( log10 ( dif ) ) resolution = 10 ** - decimals bins = ceil ( dif / resolution ) if bins < 6 : decimals += 1 if bins < 3 : resolution /= 4 else : resolution /= 2 bins = ceil ( dif / resolution ) self . offset = resolution * floor ( min_v // resolution ) self . bins = bins self . decimals = max ( decimals , 0 ) self . width = resolution