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

In [1]:
import numpy as np
from six.moves import zip

In [2]:
from bokeh.plotting import figure, show, output_notebook
from bokeh.resources import INLINE

In [3]:
N = 4000

In [4]:
x = np.random.random(size=N) * 100
y = np.random.random(size=N) * 100
radii = np.random.random(size=N) * 1.5
colors = ["#%02x%02x%02x" % (int(r), int(g), 150) for r, g in zip(50+2*x, 30+2*y)]

In [5]:
output_notebook(resources=INLINE)


Loading BokehJS ...

In [6]:
TOOLS="hover,crosshair,pan,wheel_zoom,box_zoom,reset,tap,save,box_select,poly_select,lasso_select"

p = figure(tools=TOOLS)
p.scatter(x,y, radius=radii, fill_color=colors, fill_alpha=0.6, line_color=None)


Out[6]:
<bokeh.models.renderers.GlyphRenderer at 0x1059f3240>

In [7]:
show(p)



In [ ]: