forked from IPKM/nmreval
fixed problem with setting color from context menu
This commit is contained in:
parent
255d7c7862
commit
49101565a3
@ -312,10 +312,8 @@ class ExperimentContainer(QtCore.QObject):
|
|||||||
err_pen.setColor(QtGui.QColor(*self.plot_real.symbolcolor.rgb()))
|
err_pen.setColor(QtGui.QColor(*self.plot_real.symbolcolor.rgb()))
|
||||||
self.plot_error.setData(pen=err_pen)
|
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)
|
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'):
|
def setSymbol(self, symbol=None, color=None, size=None, mode='real'):
|
||||||
if mode in ['real', 'all']:
|
if mode in ['real', 'all']:
|
||||||
|
Loading…
Reference in New Issue
Block a user