From 6993e4383b0ff74e3b9ecae2d2be53ee06e6a91e Mon Sep 17 00:00:00 2001 From: ldam <ldam@passcal.nmt.edu> Date: Wed, 30 Aug 2023 14:02:45 -0600 Subject: [PATCH] reset zoom_marker1_shown when replotting --- .../plotting/plotting_widget/multi_threaded_plotting_widget.py | 2 +- sohstationviewer/view/plotting/time_power_squared_dialog.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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..919261c3d 100644 --- a/sohstationviewer/view/plotting/plotting_widget/multi_threaded_plotting_widget.py +++ b/sohstationviewer/view/plotting/plotting_widget/multi_threaded_plotting_widget.py @@ -74,7 +74,7 @@ class MultiThreadedPlottingWidget(PlottingWidget): :param time_ticks_total: max number of tick to show on time bar :param is_waveform: True if this is a WaveformWidget, otherwise False """ - + self.zoom_marker1_shown = False self.key = key self.processing_log = [] # [(message, type)] self.gap_bar = None diff --git a/sohstationviewer/view/plotting/time_power_squared_dialog.py b/sohstationviewer/view/plotting/time_power_squared_dialog.py index 5e533b53b..ae3847d83 100755 --- a/sohstationviewer/view/plotting/time_power_squared_dialog.py +++ b/sohstationviewer/view/plotting/time_power_squared_dialog.py @@ -86,6 +86,7 @@ class TimePowerSquaredWidget(plotting_widget.PlottingWidget): :param start_tm: requested start time to read :param end_tm: requested end time to read """ + self.zoom_marker1_shown = False self.is_working = True self.set_key = key self.plotting_data1 = d_obj.waveform_data[key] -- GitLab