Interactive Plots
Interactive visualizations enable exploration.
Plotly
import plotly.express as px. px.scatter(df, x, y, color) creates interactive scatter.
Hover shows tooltips. Zoom, pan enabled. Export to HTML with fig.write_html().
Bokeh
Bokeh provides web-based interactive plots. output_notebook() for Jupyter. HoverTool for interactivity.
Altair
Altair uses declarative JSON specification. Chart(data).encode(x, y, color).interact() adds interactivity.
Key Takeaways
- Plotly creates interactive web visualizations
- Bokeh enables custom web interactions
- Altair provides declarative specification