interactive_line_plot

interactive_line_plot#

class braintools.visualize.interactive_line_plot(x, y, labels=None, title='Interactive Line Plot', xlabel='X', ylabel='Y', width=800, height=600, **kwargs)#

Create interactive line plot using Plotly.

Parameters:
  • x (ndarray) – X-axis data.

  • y (ndarray | List[ndarray]) – Y-axis data. Can be multiple traces.

  • labels (List[str] | None) – Labels for each trace.

  • title (str) – Plot title.

  • xlabel (str) – Axis labels.

  • ylabel (str) – Axis labels.

  • width (int) – Figure dimensions.

  • height (int) – Figure dimensions.

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

Returns:

fig – Interactive plotly figure.

Return type:

plotly.graph_objects.Figure