Difference between revisions of "Bokeh-Server: Plot Line"
Jump to navigation
Jump to search
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...) |
Onnowpurbo (talk | contribs) |
||
Line 1: | Line 1: | ||
Jalankan Server | Jalankan Server | ||
− | bokeh-server & | + | bokeh-server --ip 192.168.0.100 & |
Buat line.py | Buat line.py | ||
Line 7: | Line 7: | ||
from bokeh.plotting import figure, output_server, show | from bokeh.plotting import figure, output_server, show | ||
− | output_server("line") # THIS LINE HAS CHANGED! | + | output_server("line", url='http://192.168.0.100:5006') # THIS LINE HAS CHANGED! |
p = figure(plot_width=400, plot_height=400) | p = figure(plot_width=400, plot_height=400) | ||
Line 20: | Line 20: | ||
python line.py | python line.py | ||
+ | |||
+ | |||
+ | Browse ke | ||
+ | |||
+ | http://192.168.0.100:5006/bokeh/ |
Revision as of 06:03, 28 November 2015
Jalankan Server
bokeh-server --ip 192.168.0.100 &
Buat line.py
from bokeh.plotting import figure, output_server, show output_server("line", url='http://192.168.0.100:5006') # 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
Browse ke
http://192.168.0.100:5006/bokeh/