What I want to happen: The WheelZoomTool to be activated by default
What is actually happening: It’s not.
I must be missing something simple: I’m modifying this example. What am I doing wrong? Running Bokeh 0.12.9.
from bokeh.plotting import figure, output_file, show
from bokeh.models import WheelZoomTool
prepare some data
x = [1, 2, 3, 4, 5]
y = [6, 7, 2, 4, 5]
output to static HTML file
create a new plot with a title and axis labels
p = figure(title=“simple line example”, x_axis_label=‘x’, y_axis_label=‘y’)
add a line renderer with legend and line thickness
p.line(x, y, legend=“Temp.”, line_width=2)
This is the line that I’m struggling with
p.toolbar.active_scroll = WheelZoomTool()
show the results