0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-12 18:51:50 +02:00

fix(image_base): move cbar init to image base

This commit is contained in:
2025-07-04 13:30:21 +02:00
committed by Klaus Wakonig
parent 72b5c46912
commit 8929778f07
2 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,6 @@ class Image(ImageBase):
if config is None:
config = ImageConfig(widget_class=self.__class__.__name__)
self.gui_id = config.gui_id
self._color_bar = None
self.subscriptions: defaultdict[str, ImageLayerConfig] = defaultdict(
lambda: ImageLayerConfig(monitor=None, monitor_type="auto", source="auto")
)

View File

@ -260,6 +260,7 @@ class ImageBase(PlotBase):
"""
self.x_roi = None
self.y_roi = None
self._color_bar = None
super().__init__(*args, **kwargs)
self.roi_controller = ROIController(colormap="viridis")