diff --git a/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py b/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py index 9437746df7eba40bffbc2b90af7d9cbc820c446c..c311736d039cdb26de5ff922206102d787c456b9 100755 --- a/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py +++ b/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py @@ -466,26 +466,6 @@ class PlottingWidget(QtWidgets.QScrollArea): ruler.set_visible(True) ruler.xy1 = (xdata, 0) ruler.xy2 = (xdata, self.bottom) - try: - if ruler == self.zoom_marker2: - # make zoom_marker2 follow mouse. - # need to disconnect when state of rulers change - self.follower = self.fig.canvas.mpl_connect( - "motion_notify_event", self.zoom_marker2_follow_mouse) - except AttributeError: - pass - - def zoom_marker2_follow_mouse(self, mouseevent): - """ - Set zoom_marker2's to follow mouse's x. - - :param mouseevent: motion_notify_event - event to help keeping track - of mouse move - """ - xdata = self.get_timestamp(mouseevent) - self.zoom_marker2.xy1 = (xdata, 0) - self.zoom_marker2.xy2 = (xdata, self.bottom) - self.draw() def keyPressEvent(self, event): """