mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-12 18:51:50 +02:00
refactor(image_base): move default color map to image layer
This commit is contained in:
@ -142,9 +142,6 @@ class Image(ImageBase):
|
||||
self.layer_removed.connect(self._on_layer_removed)
|
||||
self.scan_id = None
|
||||
|
||||
# Default Color map to plasma
|
||||
self.color_map = "plasma"
|
||||
|
||||
################################################################################
|
||||
# Data Acquisition
|
||||
|
||||
|
@ -124,6 +124,10 @@ class ImageLayerManager:
|
||||
image = ImageItem(parent_image=self.parent, object_name=name)
|
||||
image.setZValue(z_position)
|
||||
image.removed.connect(self._remove_destroyed_layer)
|
||||
|
||||
# FIXME: For now, we hard-code the default color map here. In the future, this should be configurable.
|
||||
image.color_map = "plasma"
|
||||
|
||||
self.layers[name] = ImageLayer(name=name, image=image, sync=sync)
|
||||
self.plot_item.addItem(image)
|
||||
|
||||
|
Reference in New Issue
Block a user