Interactive Data Visualization with Bokeh
George Boorman
Core Curriculum Manager, DataCamp
pan
box_zoom
wheel_zoom
save
reset
We will cover:
Pan/Drag tools
Click/Tap tools
Scroll/Pinch tools
Other tools outside of course scope:
Actions
Inspectors
Edit tools
PanTool
pan
BoxSelectTool
box_select
BoxZoomTool
box_zoom
LassoSelectTool
lasso_select
poly_select
tap
wheel_zoom
xwheel_pan
ywheel_pan
from bokeh.models import BoxSelectTool
fig = figure(x_axis_label="Steals per Game", y_axis_label="Assists per Game") fig.circle(x=nba["steals"], y=nba["assists"])
fig.add_tools(BoxSelectTool())
output_file(filename="adding_box_select.html") show(fig)
tools = ["lasso_select", "box_zoom", "tap"]
fig = figure(x_axis_label="Steals", y_axis_label="Assists",
tools=tools)
fig.circle(x=nba["steals"], y=nba["assists"]) output_file(filename="custom_tools.html") show(fig)
Interactive Data Visualization with Bokeh