diff --git a/sohstationviewer/view/plotting/plotting_widget/plotting.py b/sohstationviewer/view/plotting/plotting_widget/plotting.py index c7496037a3d20fb039bfd24ff8c0f4af439ccdb5..1b8a2ad775dc635a99d04a19fa0fd8ca65d06262 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']