mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-13 11:11:49 +02:00
fix(image_base): move cbar init to image base
This commit is contained in:
@ -140,7 +140,6 @@ class Image(ImageBase):
|
|||||||
if config is None:
|
if config is None:
|
||||||
config = ImageConfig(widget_class=self.__class__.__name__)
|
config = ImageConfig(widget_class=self.__class__.__name__)
|
||||||
self.gui_id = config.gui_id
|
self.gui_id = config.gui_id
|
||||||
self._color_bar = None
|
|
||||||
self.subscriptions: defaultdict[str, ImageLayerConfig] = defaultdict(
|
self.subscriptions: defaultdict[str, ImageLayerConfig] = defaultdict(
|
||||||
lambda: ImageLayerConfig(monitor=None, monitor_type="auto", source="auto")
|
lambda: ImageLayerConfig(monitor=None, monitor_type="auto", source="auto")
|
||||||
)
|
)
|
||||||
|
@ -260,6 +260,7 @@ class ImageBase(PlotBase):
|
|||||||
"""
|
"""
|
||||||
self.x_roi = None
|
self.x_roi = None
|
||||||
self.y_roi = None
|
self.y_roi = None
|
||||||
|
self._color_bar = None
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
self.roi_controller = ROIController(colormap="viridis")
|
self.roi_controller = ROIController(colormap="viridis")
|
||||||
|
Reference in New Issue
Block a user