0
0
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:
2025-06-04 14:03:37 +02:00
committed by Klaus Wakonig
parent a4f3117941
commit 92b89e7275
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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)