Skip to content

Commit 446cd28

Browse files
authored
Update plotly.py
- attempt to fix for docs ...
1 parent 6bb7f09 commit 446cd28

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cebra/integrations/plotly.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import numpy.typing as npt
2929
import plotly.graph_objects
3030
import torch
31+
import plotly.graph_objects as go
3132

3233
from cebra.integrations.matplotlib import _EmbeddingPlot
3334

@@ -154,7 +155,7 @@ def _plot_3d(self, **kwargs) -> plotly.graph_objects.Figure:
154155
def plot_embedding_interactive(
155156
embedding: Union[npt.NDArray, torch.Tensor],
156157
embedding_labels: Optional[Union[npt.NDArray, torch.Tensor, str]] = "grey",
157-
axis: Optional[plotly.graph_objects.Figure] = None,
158+
axis: Optional["go.Figure"] = None,
158159
markersize: float = 1,
159160
idx_order: Optional[Tuple[int]] = None,
160161
alpha: float = 0.4,
@@ -163,7 +164,7 @@ def plot_embedding_interactive(
163164
figsize: Tuple[int] = (5, 5),
164165
dpi: int = 100,
165166
**kwargs,
166-
) -> plotly.graph_objects.Figure:
167+
) -> "go.Figure":
167168
"""Plot embedding in a 3D dimensional space.
168169
169170
This is supposing that the dimensions provided to ``idx_order`` are in the range of the number of

0 commit comments

Comments
 (0)