interactive_histogram#
- class braintools.visualize.interactive_histogram(data, labels=None, bins=30, opacity=0.7, title='Interactive Histogram', xlabel='Value', ylabel='Count', width=800, height=600, **kwargs)#
Create interactive histogram using Plotly.
- Parameters:
data (
ndarray|List[ndarray]) – Data to plot.bins (
int) – Number of bins, shared by all datasets (common bin edges over the pooled data).opacity (
float) – Histogram opacity.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 histogram.
- Returns:
fig – Interactive plotly figure.
- Return type:
plotly.graph_objects.Figure