1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-05-09 16:22:08 +02:00

fix(plot_base): set_xy autorange moved to plotbase from waveform

This commit is contained in:
2024-07-18 21:26:32 +02:00
parent 2bcaa4256d
commit a3dff7decc
3 changed files with 27 additions and 0 deletions
+13
View File
@@ -2057,6 +2057,19 @@ class BECWaveformWidget(RPCBase):
legend_label_size(int): Size of the legend labels.
"""
@rpc_call
def set_auto_range(self, enabled: "bool", axis: "str" = "xy"):
"""
Set the auto range of the plot widget.
Args:
enabled(bool): If True, enable the auto range.
axis(str, optional): The axis to enable the auto range.
- "xy": Enable auto range for both x and y axis.
- "x": Enable auto range for x axis.
- "y": Enable auto range for y axis.
"""
@rpc_call
def set_grid(self, x_grid: "bool", y_grid: "bool"):
"""