Bokeh-Server: Plot Line

From OnnoWiki
Revision as of 05:56, 28 November 2015 by Onnowpurbo (talk | contribs) (New page: Jalankan Server bokeh-server & Buat line.py from bokeh.plotting import figure, output_server, show output_server("line") # THIS LINE HAS CHANGED! p = figure(plot_width=400, plot...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Jalankan Server

bokeh-server &

Buat line.py

from bokeh.plotting import figure, output_server, show

output_server("line") # THIS LINE HAS CHANGED!

p = figure(plot_width=400, plot_height=400)

# add a line renderer
p.line([1, 2, 3, 4, 5], [6, 7, 2, 4, 5], line_width=2) 

show(p)


Jalankan

python line.py