File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2828import numpy .typing as npt
2929import plotly .graph_objects
3030import torch
31+ import plotly .graph_objects as go
3132
3233from cebra .integrations .matplotlib import _EmbeddingPlot
3334
@@ -154,7 +155,7 @@ def _plot_3d(self, **kwargs) -> plotly.graph_objects.Figure:
154155def 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
You can’t perform that action at this time.
0 commit comments