Skip to content

Commit d0a90ea

Browse files
fix: Remove coordinates defaults
1 parent 83ade92 commit d0a90ea

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/ansys/tools/visualization_interface/backends/plotly/widgets/button_manager.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,14 @@ def __init__(self, fig: go.Figure):
4444

4545
def add_button(self,
4646
label: str,
47+
x: float,
48+
y: float,
49+
xanchor: str = "left",
50+
yanchor: str = "bottom",
4751
method: str = "restyle",
4852
args: List[Any] = None,
4953
args2: List[Any] = None,
50-
x: float = 0.02,
51-
y: float = 1.02,
52-
xanchor: str = "left",
53-
yanchor: str = "bottom") -> None:
54+
) -> None:
5455
"""Add a button to the Plotly figure.
5556
5657
Parameters

0 commit comments

Comments
 (0)