(self)
This function update the horisontal lines when selection changes.
        If lines are present jet it calls the function to init them.
This function update the horisontal lines when selection changes.
        If lines are present jet it calls the function to init them.
This function update the horisontal lines when selection changes . If lines are present jet it calls the function to init them .
def _update_horizontal_lines(self):
        """
        This function update the horisontal lines when selection changes.
        If lines are present jet it calls the function to init them.
        """
        if not self.plot_horline:  # init horizontal lines
            self._plot_horizontal_lines()

        # in every case set their position
        location = int(round(self._line.value()))
        cutidx = np.searchsorted(self.x, location)
        minx = np.min(self.x)
        for s, curve, label, inc in zip(
                self.sequences, self.plot_horline, self.plot_horlabel,
                self.data_increasing):
            y = s[cutidx]
            curve.setData([minx, location], [y, y])
            self._set_anchor(label, cutidx, inc)
            label.setPos(location, y)
            label.setPlainText("{:.3f}".format(y))
def _update_horizontal_lines ( self ) : if not self . plot_horline : # init horizontal lines self . _plot_horizontal_lines ( ) # in every case set their position location = int ( round ( self . _line . value ( ) ) ) cutidx = np . searchsorted ( self . x , location ) minx = np . min ( self . x ) for s , curve , label , inc in zip ( self . sequences , self . plot_horline , self . plot_horlabel , self . data_increasing ) : y = s [ cutidx ] curve . setData ( [ minx , location ] , [ y , y ] ) self . _set_anchor ( label , cutidx , inc ) label . setPos ( location , y ) label . setPlainText ( "{:.3f}" . format ( y ) )