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

To run these examples you must execute the command python bokeh-server in the top-level Bokeh source directory first.


In [ ]:
output_notebook(url="http://localhost:5006/")

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

In [ ]:
p = figure()
p.line(x,y, color="tomato", line_width=2)
show(p)

In [ ]: