position_toolbar#

This example demonstrates a basic scatter plot with the toolbar positioned below the plot, outside of the axes, titles, etc.

Details

Bokeh APIs:

figure.toolbar_location, figure.toolbar_sticky, figure.scatter, bokeh.plotting.show

More info:

Positioning the toolbar

Keywords:

position, location, sticky, toolbar

from bokeh.plotting import figure, show

p = figure(width=400, height=400,
           title=None, toolbar_location="below",
           toolbar_sticky=False)

p.scatter([1, 2, 3, 4, 5], [2, 5, 8, 2, 7], size=10)

show(p)