(self)
Trigger an update of point colors

        The method calls `self.get_colors`, which in turn calls the widget's
        `get_color_data` to get the indices in the pallette. `get_colors`
        returns a list of pens and brushes to which this method uses to
        update the colors. Finally, the method triggers the update of the
        legend and the density plot.
Trigger an update of point colors
Trigger an update of point colors
def update_colors(self):
        """
        Trigger an update of point colors

        The method calls `self.get_colors`, which in turn calls the widget's
        `get_color_data` to get the indices in the pallette. `get_colors`
        returns a list of pens and brushes to which this method uses to
        update the colors. Finally, the method triggers the update of the
        legend and the density plot.
        """
        if self.scatterplot_item is not None:
            pen_data, brush_data = self.get_colors()
            self.scatterplot_item.setPen(pen_data, update=False, mask=None)
            self.scatterplot_item.setBrush(brush_data, mask=None)
        self.update_z_values()
        self.update_legends()
        self.update_density()
def update_colors ( self ) : if self . scatterplot_item is not None : pen_data , brush_data = self . get_colors ( ) self . scatterplot_item . setPen ( pen_data , update = False , mask = None ) self . scatterplot_item . setBrush ( brush_data , mask = None ) self . update_z_values ( ) self . update_legends ( ) self . update_density ( )