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

In [9]:
N = 4000

In [10]:
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' % (r,g,150) for r,g in zip(np.floor(50+2*x),np.floor(30+2*y))]

In [11]:
output_notebook()


Loading BokehJS ...

In [12]:
p = figure()
p.circle(x,y, radius = radii,fill_color = colors, fill_alpha = 0.6,line_color = None)


Out[12]:
<bokeh.models.renderers.GlyphRenderer at 0x298cef0>

In [13]:
show(p)


Out[13]:

<Bokeh Notebook handle for In[1]>


In [ ]: