From 1965e1abb3e1af8d47e85dfd4bdcb0b90fef6a57 Mon Sep 17 00:00:00 2001
From: ldam <ldam@passcal.nmt.edu>
Date: Fri, 25 Aug 2023 11:59:15 -0600
Subject: [PATCH] if sample number is one, even if the setup of the plot is to
 plot line, still plot a dot with the same color

---
 sohstationviewer/view/plotting/plotting_widget/plotting.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sohstationviewer/view/plotting/plotting_widget/plotting.py b/sohstationviewer/view/plotting/plotting_widget/plotting.py
index 7b44ad3f3..1a169ac68 100644
--- a/sohstationviewer/view/plotting/plotting_widget/plotting.py
+++ b/sohstationviewer/view/plotting/plotting_widget/plotting.py
@@ -269,13 +269,14 @@ class Plotting:
                 obj, c = cStr.split(':')
                 colors[obj] = c
         l_color = 'G'
-        d_color = 'W'
         has_dot = False
         if 'L' in colors:
             l_color = colors['L']
         if 'D' in colors:
             d_color = colors['D']
             has_dot = True
+        else:
+            d_color = l_color
 
         if chan_id == 'GPS Lk/Unlk':
             sample_no_list = []
@@ -291,7 +292,7 @@ class Plotting:
             info=info, y_list=y_list, linked_ax=linked_ax)
 
         for x, y in zip(x_list, y_list):
-            if not has_dot:
+            if not has_dot and sample_no_list[0] > 1:
                 # set marker to be able to click point for info
                 # but marker's size is small to not show dot.
                 ax.myPlot = ax.plot(x, y, marker='o', markersize=0.01,
-- 
GitLab