(self)
return pen, [QBrush(QColor(255, 255, 255, 0))] * self.n_shown
Return pens and brushes for selection markers.

        A pen can is set to `Qt.NoPen` if a point is not selected.

        All brushes are completely transparent whites.

        Returns:
            (tuple): a list of pens and a list of brushes
Return pens and brushes for selection markers.
Return pens and brushes for selection markers .
def get_colors_sel(self):
        """
        Return pens and brushes for selection markers.

        A pen can is set to `Qt.NoPen` if a point is not selected.

        All brushes are completely transparent whites.

        Returns:
            (tuple): a list of pens and a list of brushes
        """
        nopen = QPen(Qt.NoPen)
        if self.selection is None:
            pen = [nopen] * self.n_shown
        else:
            sels = np.max(self.selection)
            if sels == 1:
                pen = np.where(
                    self._filter_visible(self.selection),
                    _make_pen(QColor(255, 190, 0, 255), SELECTION_WIDTH),
                    nopen)
            else:
                palette = colorpalettes.LimitedDiscretePalette(
                    number_of_colors=sels + 1)
                pen = np.choose(
                    self._filter_visible(self.selection),
                    [nopen] + [_make_pen(palette[i], SELECTION_WIDTH)
                               for i in range(sels)])
        return pen, [QBrush(QColor(255, 255, 255, 0))] * self.n_shown
def get_colors_sel ( self ) : nopen = QPen ( Qt . NoPen ) if self . selection is None : pen = [ nopen ] * self . n_shown else : sels = np . max ( self . selection ) if sels == 1 : pen = np . where ( self . _filter_visible ( self . selection ) , _make_pen ( QColor ( 255 , 190 , 0 , 255 ) , SELECTION_WIDTH ) , nopen ) else : palette = colorpalettes . LimitedDiscretePalette ( number_of_colors = sels + 1 ) pen = np . choose ( self . _filter_visible ( self . selection ) , [ nopen ] + [ _make_pen ( palette [ i ] , SELECTION_WIDTH ) for i in range ( sels ) ] ) return pen , [ QBrush ( QColor ( 255 , 255 , 255 , 0 ) ) ] * self . n_shown