Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. from bokeh.plotting import figure
  2. from bokeh.embed import components, file_html
  3. from bokeh.resources import CDN
  4.  
  5. x = [1, 2, 3, 4, 5]
  6. y = [6, 7, 2, 4, 5]
  7.  
  8. p = figure(title='test', x_axis_label = 'x values', y_axis_label='y values')
  9. p.line(x,y, line_width =2)
  10. html = file_html(p,CDN,'plot')
  11. displayHTML(html)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement