(self, x)
Function plots the cutpoint.

        Parameters
        ----------
        x : int
            Cutpoint location.
Function plots the cutpoint.
Function plots the cutpoint .
def _plot_cutpoint(self, x):
        """
        Function plots the cutpoint.

        Parameters
        ----------
        x : int
            Cutpoint location.
        """
        if x is None:
            self._line = None
            return
        if self._line is None:
            # plot interactive vertical line
            self._line = InfiniteLine(
                angle=90, pos=x, movable=True,
                bounds=self.selection_limit if self.selection_limit is not None
                else (self.x.min(), self.x.max())
            )
            self._line.setCursor(Qt.SizeHorCursor)
            self._line.setPen(mkPen(QColor(Qt.black), width=2))
            self._line.sigPositionChanged.connect(self._on_cut_changed)
            self.addItem(self._line)
        else:
            self._line.setValue(x)

        self._update_horizontal_lines()
def _plot_cutpoint ( self , x ) : if x is None : self . _line = None return if self . _line is None : # plot interactive vertical line self . _line = InfiniteLine ( angle = 90 , pos = x , movable = True , bounds = self . selection_limit if self . selection_limit is not None else ( self . x . min ( ) , self . x . max ( ) ) ) self . _line . setCursor ( Qt . SizeHorCursor ) self . _line . setPen ( mkPen ( QColor ( Qt . black ) , width = 2 ) ) self . _line . sigPositionChanged . connect ( self . _on_cut_changed ) self . addItem ( self . _line ) else : self . _line . setValue ( x ) self . _update_horizontal_lines ( )