From 3f5fd2e6030004054bb1011f483f2fda8329c6df Mon Sep 17 00:00:00 2001
From: ldam <ldam@passcal.nmt.edu>
Date: Wed, 23 Aug 2023 17:26:51 -0600
Subject: [PATCH] remove zoom_marker2_follow_mouse

---
 .../plotting_widget/plotting_widget.py        | 20 -------------------
 1 file changed, 20 deletions(-)

diff --git a/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py b/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py
index 9437746df..c311736d0 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):
         """
-- 
GitLab