(self, subset, color=COLOR_DEFAULT)
return pen, brush
Return the same pen for all points while the brush color depends
        upon whether the point is in the subset or not

        Args:
            subset (np.ndarray): a bool array indicating whether a data point
                is in the subset or not (e.g. in the 'Data Subset' signal
                in the Scatter plot and similar widgets);

        Returns:
            (tuple): a list of pens and list of brushes
Return the same pen for all points while the brush color depends
        upon whether the point is in the subset or not
Return the same pen for all points while the brush color depends upon whether the point is in the subset or not
def _get_same_colors(self, subset, color=COLOR_DEFAULT):
        """
        Return the same pen for all points while the brush color depends
        upon whether the point is in the subset or not

        Args:
            subset (np.ndarray): a bool array indicating whether a data point
                is in the subset or not (e.g. in the 'Data Subset' signal
                in the Scatter plot and similar widgets);

        Returns:
            (tuple): a list of pens and list of brushes
        """

        if subset is not None:
            colors = [QColor(*color, alpha)
                      for alpha in self._alpha_for_subsets()]
            brushes = [QBrush(color) for color in colors]
            brush = np.where(subset, *brushes)
        else:
            qcolor = QColor(*color, self.alpha_value)
            brush = np.full(self.n_shown, QBrush(qcolor))
        qcolor = QColor(*color, self.alpha_value)
        pen = [_make_pen(qcolor, 1.5)] * self.n_shown
        return pen, brush
def _get_same_colors ( self , subset , color = COLOR_DEFAULT ) : if subset is not None : colors = [ QColor ( * color , alpha ) for alpha in self . _alpha_for_subsets ( ) ] brushes = [ QBrush ( color ) for color in colors ] brush = np . where ( subset , * brushes ) else : qcolor = QColor ( * color , self . alpha_value ) brush = np . full ( self . n_shown , QBrush ( qcolor ) ) qcolor = QColor ( * color , self . alpha_value ) pen = [ _make_pen ( qcolor , 1.5 ) ] * self . n_shown return pen , brush