In [1]:
import numpy as np
from bokeh.plotting import *
In [2]:
from bokeh import _version
In [3]:
_version.version_version
Out[3]:
In [4]:
N = 100
In [5]:
x = np.linspace(0, 4*np.pi, N)
y = np.sin(x)
In [6]:
output_notebook(force=True)
In [17]:
p1 = figure(tools='pan, box_select, box_zoom, wheel_zoom, save, reset')
p1.scatter(x, y,color="#FF00FF", nonselection_fill_color="#FFFF00", nonselection_fill_alpha=1)
show(p1)
In [18]:
p2 = figure(tools='pan, box_select, box_zoom, wheel_zoom, save, reset')
p2.scatter(x,y, color="red")
show(p2)
In [19]:
p3 = figure(tools='pan, box_select, box_zoom, wheel_zoom, save, reset')
p3.scatter(x,y, marker="square", color="green")
show(p3)
In [20]:
p4 = figure(tools='box_select')
p4.scatter(x,y, marker="square", color="blue")
show(p4)
In [ ]: