interactive_surface

interactive_surface#

class braintools.visualize.interactive_surface(z, x=None, y=None, colorscale='Viridis', title='Interactive Surface', width=800, height=600, **kwargs)#

Create interactive 3D surface plot using Plotly.

Parameters:
  • z (ndarray) – 2D array of surface heights.

  • x (ndarray | None) – X and Y coordinates.

  • y (ndarray | None) – X and Y coordinates.

  • colorscale (str) – Plotly colorscale name.

  • title (str) – Plot title.

  • width (int) – Figure dimensions.

  • height (int) – Figure dimensions.

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

Returns:

fig – Interactive plotly figure.

Return type:

plotly.graph_objects.Figure