mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-14 03:31:50 +02:00
fix(motor_map): motor map can be removed from BECFigure with .remove()
This commit is contained in:
@ -1206,6 +1206,13 @@ class BECImageShow(RPCBase):
|
|||||||
|
|
||||||
|
|
||||||
class BECMotorMap(RPCBase):
|
class BECMotorMap(RPCBase):
|
||||||
|
@property
|
||||||
|
@rpc_call
|
||||||
|
def rpc_id(self) -> "str":
|
||||||
|
"""
|
||||||
|
Get the RPC ID of the widget.
|
||||||
|
"""
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@rpc_call
|
@rpc_call
|
||||||
def config_dict(self) -> "dict":
|
def config_dict(self) -> "dict":
|
||||||
@ -1289,6 +1296,12 @@ class BECMotorMap(RPCBase):
|
|||||||
dict: Data of the motor map.
|
dict: Data of the motor map.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@rpc_call
|
||||||
|
def remove(self):
|
||||||
|
"""
|
||||||
|
Remove the plot widget from the figure.
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
class BECPlotBase(RPCBase):
|
class BECPlotBase(RPCBase):
|
||||||
@property
|
@property
|
||||||
|
@ -36,6 +36,7 @@ class MotorMapConfig(SubplotConfig):
|
|||||||
|
|
||||||
class BECMotorMap(BECPlotBase):
|
class BECMotorMap(BECPlotBase):
|
||||||
USER_ACCESS = [
|
USER_ACCESS = [
|
||||||
|
"rpc_id",
|
||||||
"config_dict",
|
"config_dict",
|
||||||
"change_motors",
|
"change_motors",
|
||||||
"set_max_points",
|
"set_max_points",
|
||||||
@ -44,6 +45,7 @@ class BECMotorMap(BECPlotBase):
|
|||||||
"set_background_value",
|
"set_background_value",
|
||||||
"set_scatter_size",
|
"set_scatter_size",
|
||||||
"get_data",
|
"get_data",
|
||||||
|
"remove",
|
||||||
]
|
]
|
||||||
|
|
||||||
# QT Signals
|
# QT Signals
|
||||||
|
Reference in New Issue
Block a user