From bf80e56ae13bffbb5c567fce5723c8d44b2def7c Mon Sep 17 00:00:00 2001
From: kienle <kienle@passcal.nmt.edu>
Date: Wed, 29 Mar 2023 16:30:38 -0600
Subject: [PATCH] Format ruler text

---
 .../view/plotting/plotting_widget/plotting_widget.py          | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py b/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py
index 80fd5b16e..9bd5fd3d1 100755
--- a/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py
+++ b/sohstationviewer/view/plotting/plotting_widget/plotting_widget.py
@@ -379,8 +379,10 @@ class PlottingWidget(QtWidgets.QScrollArea):
             pass
         self.set_ruler_visibled(self.ruler, xdata)
         if xdata >= self.min_x:
+            ruler_text_content = format_time(xdata, self.parent.date_format,
+                                             'HH:MM:SS')
             self.ruler_text = self.plotting_axes.fig.text(
-                xdata, 75, 'Potato',
+                xdata, 75, ruler_text_content,
                 verticalalignment='top',
                 horizontalalignment='center',
                 transform=self.timestamp_bar_top.transData,
-- 
GitLab