(self, y, bars, labels)
Draw bar labels

        Parameters
        ----------
        y: int
            vertical offset of bars
        bars: List[FilterGraphicsRectItem]
            list of bars being drawn
        labels: List[QGraphicsTextItem]
            list of labels for corresponding bars
Draw bar labels
Draw bar labels
def __draw_bar_labels(self, y, bars, labels):
        """Draw bar labels

        Parameters
        ----------
        y: int
            vertical offset of bars
        bars: List[FilterGraphicsRectItem]
            list of bars being drawn
        labels: List[QGraphicsTextItem]
            list of labels for corresponding bars
        """
        for text_item, bar_part in zip(labels, bars):
            label = self.Label(
                text_item.toPlainText())
            label.setPos(bar_part.boundingRect().x(),
                         y - label.boundingRect().height() - 8)
            label.setMaxWidth(bar_part.boundingRect().width())
            self.box_scene.addItem(label)
def __draw_bar_labels ( self , y , bars , labels ) : for text_item , bar_part in zip ( labels , bars ) : label = self . Label ( text_item . toPlainText ( ) ) label . setPos ( bar_part . boundingRect ( ) . x ( ) , y - label . boundingRect ( ) . height ( ) - 8 ) label . setMaxWidth ( bar_part . boundingRect ( ) . width ( ) ) self . box_scene . addItem ( label )