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 [1]:
import numpy as np
from bokeh.plotting import figure, show, output_notebook

In [2]:
N = 100

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

In [4]:
output_notebook()


BokehJS successfully loaded.

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



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



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



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



In [ ]: