summaryrefslogtreecommitdiff
path: root/silx/gui/plot/actions/control.py
diff options
context:
space:
mode:
Diffstat (limited to 'silx/gui/plot/actions/control.py')
-rwxr-xr-xsilx/gui/plot/actions/control.py17
1 files changed, 1 insertions, 16 deletions
diff --git a/silx/gui/plot/actions/control.py b/silx/gui/plot/actions/control.py
index 182ac78..439985e 100755
--- a/silx/gui/plot/actions/control.py
+++ b/silx/gui/plot/actions/control.py
@@ -374,22 +374,7 @@ class ColormapAction(PlotAction):
return
image = self.plot.getActiveImage()
- if isinstance(image, items.ImageComplexData):
- # Specific init for complex images
- colormap = image.getColormap()
-
- mode = image.getComplexMode()
- if mode in (items.ImageComplexData.ComplexMode.AMPLITUDE_PHASE,
- items.ImageComplexData.ComplexMode.LOG10_AMPLITUDE_PHASE):
- data = image.getData(
- copy=False, mode=items.ImageComplexData.ComplexMode.PHASE)
- else:
- data = image.getData(copy=False)
-
- # Set histogram and range if any
- self._dialog.setData(data)
-
- elif isinstance(image, items.ColormapMixIn):
+ if isinstance(image, items.ColormapMixIn):
# Set dialog from active image
colormap = image.getColormap()
# Set histogram and range if any