1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-03-10 18:57:50 +01:00

feat(widgets/Waveform1D): Waveform1D can be fully constructed by config

This commit is contained in:
wyzula-jan
2024-02-21 22:44:42 +01:00
parent 08534a4739
commit 9a5c86ea35
3 changed files with 63 additions and 13 deletions

View File

@@ -207,6 +207,15 @@ class BECWaveform1D(RPCBase):
CurveConfig|dict: Configuration of the curve.
"""
@rpc_call
def apply_config(self, config: "dict | WidgetConfig", replot_last_scan: "bool" = False):
"""
Apply the configuration to the 1D waveform widget.
Args:
config(dict|WidgetConfig): Configuration settings.
replot_last_scan(bool, optional): If True, replot the last scan. Defaults to False.
"""
class BECFigure(RPCBase, BECFigureClientMixin):
@rpc_call