Bokeh-Server: Plot Line: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump 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)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Jalankan Server
bokeh-server &
Buat line.py
Buat line.py


  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 17: Line 13:




Jalankan
Jalankan Server
 
bokeh serve --address=192.168.0.100 --host 192.168.0.100:5006 line.py
 
 
 
Browse ke


  python line.py
  http://192.168.0.100:5006/line/

Latest revision as of 07:04, 21 February 2016

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 Server

bokeh serve --address=192.168.0.100 --host 192.168.0.100:5006 line.py


Browse ke

http://192.168.0.100:5006/line/