From 49101565a3b8c1a37875727696316efcaefd06d1 Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Wed, 17 May 2023 19:41:44 +0200 Subject: [PATCH] fixed problem with setting color from context menu --- src/gui_qt/data/container.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui_qt/data/container.py b/src/gui_qt/data/container.py index b4c2d69..24cf09d 100644 --- a/src/gui_qt/data/container.py +++ b/src/gui_qt/data/container.py @@ -312,10 +312,8 @@ class ExperimentContainer(QtCore.QObject): err_pen.setColor(QtGui.QColor(*self.plot_real.symbolcolor.rgb())) self.plot_error.setData(pen=err_pen) - elif mode == 'imag' and self.plot_imag is not None: + if mode in ['imag', 'all'] and self.plot_imag is not None: self.plot_imag.set_color(color, symbol=symbol, line=line) - else: - print('Updating color failed for ' + str(self.id)) def setSymbol(self, symbol=None, color=None, size=None, mode='real'): if mode in ['real', 'all']: