def draw_label(self, y_offset, index):
        if self.labels in index and index not in self.labels_seen:
            dl = DrawableList()
            dl.append(DrawableFillColor(self.font_color))
            font = self.font if self.font else base.DEFAULT_FONT
            dl.append(DrawableGravity(GravityType.NorthEastGravity))
            dl.append(DrawableFont(font, StyleType.NormalStyle, 400,
                                   StretchType.NormalStretch))
            dl.append(DrawableStrokeColor(Color('transparent')))
            dl.append(DrawablePointSize(self.marker_font_size))
            font_hight = self.calculate_caps_height(self.marker_font_size)
            #text_width = self.calculate_width(self.marker_font_size,
            #                                  self.labels[index])
            x = self.raw_columns - self.graph_left + base.LABEL_MARGIN
            y = y_offset + font_hight / 2.0
            dl.append(DrawableText(x, y, self.labels[index]))
            self.labels_seen[index] = 1
            dl.append(DrawableScaling(self.scale, self.scale))
            self.base_image.draw(dl)
dataset/ETHPy150Open hhatto/gruffy/gruffy/sidebar.py/SideBar.draw_label/swapped operands of `in`