From b8ae7b2e96071b6dc59dae7ffa72bbedc6aaea23 Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Thu, 17 Jul 2025 14:36:04 +0200 Subject: [PATCH] fix(config label): reset offset when toggling the label action --- bec_widgets/widgets/plots/heatmap/heatmap.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bec_widgets/widgets/plots/heatmap/heatmap.py b/bec_widgets/widgets/plots/heatmap/heatmap.py index df8fa8cc..e5818f3d 100644 --- a/bec_widgets/widgets/plots/heatmap/heatmap.py +++ b/bec_widgets/widgets/plots/heatmap/heatmap.py @@ -567,6 +567,8 @@ class Heatmap(ImageBase): if not self._image_config.show_config_label: self.config_label.setVisible(False) return + + self.config_label.setOffset((-30, 1)) self.config_label.setVisible(True) self.config_label.clear() self.config_label.addItem(self.plot_item, f"Scan: {scan_msg.scan_number}")