bokeh.models
Interfacebokeh.models.annotations
bokeh.models.axes
bokeh.models.callbacks
bokeh.models.formatters
bokeh.models.glyphs
bokeh.models.grids
bokeh.models.map_plots
bokeh.models.mappers
bokeh.models.markers
bokeh.models.plots
bokeh.models.ranges
bokeh.models.renderers
bokeh.models.sources
bokeh.models.tickers
bokeh.models.tools
bokeh.models.widget
bokeh.models.widgets.buttons
bokeh.models.widgets.dialogs
bokeh.models.widgets.groups
bokeh.models.widgets.icons
bokeh.models.widgets.inputs
bokeh.models.widgets.layouts
bokeh.models.widgets.markups
bokeh.models.widgets.panels
bokeh.models.widgets.tables
bokeh.validation
Package
bokeh.plotting
Interfacebokeh.charts
Interface
< lorenz | back to Gallery | iris_splom >
import numpy as np
from six.moves import zip
from bokeh.plotting import figure, show, output_file
N = 4000
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))]
TOOLS="resize,crosshair,pan,wheel_zoom,box_zoom,reset,tap,previewsave,box_select,poly_select,lasso_select"
output_file("color_scatter.html", title="color_scatter.py example")
p = figure(tools=TOOLS)
p.scatter(x, y, radius=radii, fill_color=colors, fill_alpha=0.6, line_color=None)
show(p) # open a browser