From d10147543b74b706b206788a66ccfe3c66d86d7d Mon Sep 17 00:00:00 2001
From: ldam <ldam@passcal.nmt.edu>
Date: Tue, 29 Aug 2023 19:10:58 -0600
Subject: [PATCH] not use pref_order when plotting mass_pos

---
 .../plotting_widget/multi_threaded_plotting_widget.py  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/sohstationviewer/view/plotting/plotting_widget/multi_threaded_plotting_widget.py b/sohstationviewer/view/plotting/plotting_widget/multi_threaded_plotting_widget.py
index f8cec9281..511aba4e2 100644
--- a/sohstationviewer/view/plotting/plotting_widget/multi_threaded_plotting_widget.py
+++ b/sohstationviewer/view/plotting/plotting_widget/multi_threaded_plotting_widget.py
@@ -110,7 +110,7 @@ class MultiThreadedPlottingWidget(PlottingWidget):
     def create_plotting_channel_processors(
             self, plotting_data: Dict,
             need_db_info: bool = False,
-            need_move_channel: bool = False
+            is_plotting_data1: bool = False
     ) -> None:
         """
         Create a data processor for each channel data in the order of
@@ -119,10 +119,10 @@ class MultiThreadedPlottingWidget(PlottingWidget):
 
         :param plotting_data: dict of data by chan_id
         :param need_db_info: flag to get db info
-        :param need_move_channel: flag to call
-            move_soh_channels_with_link_to_the_end()
+        :param is_plotting_data1: flag to tell if the plotting_data sent is
+            plotting_data1
         """
-        chan_order = self.pref_order if self.pref_order \
+        chan_order = self.pref_order if is_plotting_data1 and self.pref_order \
             else sorted(list(plotting_data.keys()))
         chan_order = replace_actual_question_chans(
             chan_order, list(plotting_data.keys()))
@@ -155,7 +155,7 @@ class MultiThreadedPlottingWidget(PlottingWidget):
                    f"{', '.join( not_plot_chans)}")
             self.processing_log.append((msg, LogType.WARNING))
 
-        if need_move_channel:
+        if is_plotting_data1:
             self.move_soh_channels_with_link_to_the_end(chan_order)
 
         for chan_id in chan_order:
-- 
GitLab