bokeh.models Interfacebokeh.models.annotationsbokeh.models.axesbokeh.models.callbacksbokeh.models.formattersbokeh.models.glyphsbokeh.models.gridsbokeh.models.map_plotsbokeh.models.mappersbokeh.models.markersbokeh.models.plotsbokeh.models.rangesbokeh.models.renderersbokeh.models.sourcesbokeh.models.tickersbokeh.models.toolsbokeh.models.widgetbokeh.models.widgets.buttonsbokeh.models.widgets.dialogsbokeh.models.widgets.groupsbokeh.models.widgets.iconsbokeh.models.widgets.inputsbokeh.models.widgets.layoutsbokeh.models.widgets.markupsbokeh.models.widgets.panelsbokeh.models.widgets.tablesbokeh.validation Package
bokeh.plotting Interfacebokeh.charts Interface
< histogram | back to Gallery | lorenz >
import numpy as np
from bokeh.plotting import figure, show, output_file
N = 1000
x = np.linspace(0, 10, N)
y = np.linspace(0, 10, N)
xx, yy = np.meshgrid(x, y)
d = np.sin(xx)*np.cos(yy)
output_file("image.html", title="image.py example")
p = figure(x_range=[0, 10], y_range=[0, 10])
p.image(image=[d], x=[0], y=[0], dw=[10], dh=[10], palette="Spectral11")
show(p)  # open a browser