interactive_3d_scatter

interactive_3d_scatter#

class braintools.visualize.interactive_3d_scatter(x, y, z, color=None, size=None, labels=None, title='Interactive 3D Scatter', width=800, height=600, **kwargs)#

Create interactive 3D scatter plot using Plotly.

Parameters:
  • x (ndarray) – 3D coordinates.

  • y (ndarray) – 3D coordinates.

  • z (ndarray) – 3D coordinates.

  • color (ndarray | None) – Color values for points.

  • size (ndarray | None) – Size values for points.

  • labels (List[str] | None) – Labels for hover text.

  • title (str) – Plot title.

  • width (int) – Figure dimensions.

  • height (int) – Figure dimensions.

  • **kwargs – Additional arguments passed to Plotly scatter3d.

Returns:

fig – Interactive plotly figure.

Return type:

plotly.graph_objects.Figure