(self, palette, scale, label_formatter=None)
:param palette: palette used for showing continuous values
        :type palette: BinnedContinuousPalette
        :param scale: an instance of DiscretizedScale that defines the
                      conversion of values into bins
        :type scale: DiscretizedScale
:param palette: palette used for showing continuous values
        :type palette: BinnedContinuousPalette
        :param scale: an instance of DiscretizedScale that defines the
                      conversion of values into bins
        :type scale: DiscretizedScale
: param palette : palette used for showing continuous values : type palette : BinnedContinuousPalette : param scale : an instance of DiscretizedScale that defines the conversion of values into bins : type scale : DiscretizedScale
def __init__(self, palette, scale, label_formatter=None):
        """
        :param palette: palette used for showing continuous values
        :type palette: BinnedContinuousPalette
        :param scale: an instance of DiscretizedScale that defines the
                      conversion of values into bins
        :type scale: DiscretizedScale
        """
        super().__init__(None)
        self.palette = palette
        self.scale = scale
        if label_formatter is None:
            label_formatter = "{{:.{}f}}".format(scale.decimals).format
        cuts = [label_formatter(scale.offset + i * scale.width)
                for i in range(scale.bins + 1)]
        self.labels = [QStaticText("{} - {}".format(fr, to))
                       for fr, to in zip(cuts, cuts[1:])]
        self.font = self.font()
        self.font.setPointSize(11)
def __init__ ( self , palette , scale , label_formatter = None ) : super ( ) . __init__ ( None ) self . palette = palette self . scale = scale if label_formatter is None : label_formatter = "{{:.{}f}}" . format ( scale . decimals ) . format cuts = [ label_formatter ( scale . offset + i * scale . width ) for i in range ( scale . bins + 1 ) ] self . labels = [ QStaticText ( "{} - {}" . format ( fr , to ) ) for fr , to in zip ( cuts , cuts [ 1 : ] ) ] self . font = self . font ( ) self . font . setPointSize ( 11 )