From 61213ec53b6f3643c45db4ad698cb7804f8e265e Mon Sep 17 00:00:00 2001
From: ldam <ldam@passcal.nmt.edu>
Date: Wed, 23 Aug 2023 14:19:30 -0600
Subject: [PATCH] change plot_multi_color_dots x to x_list, add x0, x1 to
 plot_up_down_dots

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

diff --git a/sohstationviewer/view/plotting/plotting_widget/plotting.py b/sohstationviewer/view/plotting/plotting_widget/plotting.py
index d576b131b..7eabd46ff 100644
--- a/sohstationviewer/view/plotting/plotting_widget/plotting.py
+++ b/sohstationviewer/view/plotting/plotting_widget/plotting.py
@@ -108,7 +108,6 @@ class Plotting:
 
         total_samples = len(x)
 
-        x = sorted(x)
         if len(colors) != 1:
             sample_no_colors = [clr['W']]
         else:
@@ -118,7 +117,7 @@ class Plotting:
             ax, [total_samples], sample_no_colors=sample_no_colors,
             chan_db_info=chan_db_info, linked_ax=linked_ax)
         if linked_ax is None:
-            ax.x = x
+            ax.x_list = c_data['times']
         else:
             ax.linkedX = x
         ax.chan_db_info = chan_db_info
@@ -182,8 +181,8 @@ class Plotting:
             sample_no_pos=[0.25, 0.75],
             chan_db_info=chan_db_info, linked_ax=linked_ax)
 
-        ax.x0 = points_list[0]
-        ax.x1 = points_list[1]
+        ax.x0 = np.array(points_list[0])
+        ax.x1 = np.array(points_list[1])
 
         ax.chan_db_info = chan_db_info
         return ax
-- 
GitLab