From b1ef2b20d29f4b29b27ee6e3cc577b462df3d678 Mon Sep 17 00:00:00 2001 From: wyzula-jan Date: Tue, 2 Jul 2024 20:36:20 +0200 Subject: [PATCH] fix(motor_map): fixed bug with residual trace after changing motors --- bec_widgets/widgets/figure/plots/motor_map/motor_map.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bec_widgets/widgets/figure/plots/motor_map/motor_map.py b/bec_widgets/widgets/figure/plots/motor_map/motor_map.py index d906af87..00ef757f 100644 --- a/bec_widgets/widgets/figure/plots/motor_map/motor_map.py +++ b/bec_widgets/widgets/figure/plots/motor_map/motor_map.py @@ -140,6 +140,8 @@ class BECMotorMap(BECPlotBase): motor_y_entry(str): Motor entry for the Y axis. validate_bec(bool, optional): If True, validate the signal with BEC. Defaults to True. """ + self.plot_item.clear() + motor_x_entry, motor_y_entry = self._validate_signal_entries( motor_x, motor_y, motor_x_entry, motor_y_entry, validate_bec )