mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-06-08 06:18:39 +02:00
refactor: set downsampling to auto=True, method 'peak', activate clipToView for (Async)-Curves and fix ViewAll hook from pg.view_box menu
This commit is contained in:
@@ -498,6 +498,15 @@ class Curve(RPCBase):
|
||||
dict: The configuration of the widget.
|
||||
"""
|
||||
|
||||
@rpc_call
|
||||
def _get_displayed_data(self) -> "tuple[np.ndarray, np.ndarray]":
|
||||
"""
|
||||
Get the displayed data of the curve.
|
||||
|
||||
Returns:
|
||||
tuple[np.ndarray, np.ndarray]: The x and y data of the curve.
|
||||
"""
|
||||
|
||||
@rpc_call
|
||||
def set(self, **kwargs):
|
||||
"""
|
||||
@@ -593,7 +602,7 @@ class Curve(RPCBase):
|
||||
"""
|
||||
|
||||
@rpc_call
|
||||
def get_data(self) -> "tuple[np.ndarray, np.ndarray]":
|
||||
def get_data(self) -> "tuple[np.ndarray | None, np.ndarray | None]":
|
||||
"""
|
||||
Get the data of the curve.
|
||||
Returns:
|
||||
|
||||
Reference in New Issue
Block a user