From 4d50aa1d7a2fc12709667cb0f3c33b214f3e0f37 Mon Sep 17 00:00:00 2001 From: Kien Le <kien.le@earthscope.org> Date: Tue, 30 Apr 2024 13:59:38 -0600 Subject: [PATCH] Make points for Event DS plots show up --- .../view/plotting/plotting_widget/plotting.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sohstationviewer/view/plotting/plotting_widget/plotting.py b/sohstationviewer/view/plotting/plotting_widget/plotting.py index c7496037..1b8a2ad7 100644 --- a/sohstationviewer/view/plotting/plotting_widget/plotting.py +++ b/sohstationviewer/view/plotting/plotting_widget/plotting.py @@ -266,8 +266,12 @@ class Plotting: :param ax: axes to plot channel :return ax: axes of the channel """ - # Set the color to white by default - color = '#000000' + # Set the default color to black or white depending on the background + # color of the plot + if self.main_window.color_mode == 'B': + color = '#FFFFFF' + elif self.main_window.color_mode == 'W': + color = '#000000' if chan_db_info['valueColors'] not in [None, 'None', '']: color = chan_db_info['valueColors'].strip()[6:] x_list = c_data['times'] -- GitLab