This IPython Notebook contains simple examples of the scatter function. To clear all previously rendered cell outputs, select from the menu: Cell -> All Output -> Clear

In [ ]:
import numpy as np
from bokeh.plotting import figure, show, output_notebook

In [ ]:
N = 100

In [ ]:
x = np.linspace(0, 4*np.pi, N)
y = np.sin(x)

In [ ]:
output_notebook()

In [ ]:
p1 = figure()
p1.scatter(x,y, color="#FF00FF", nonselection_fill_color="#FFFF00", nonselection_fill_alpha=1)
show(p1)

In [ ]:
p2 = figure()
p2.scatter(x,y, color="red")
show(p2)

In [ ]:
p3 = figure()
p3.scatter(x,y, marker="square", color="green")
show(p3)

In [ ]:
p4 = figure()
p4.scatter(x,y, marker="square", color="blue")
show(p4)

In [ ]: