Guest User

Untitled

a guest
Jan 17th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. from bokeh.plotting import figure, save
  2. text = 'I eat rice'
  3. p = figure(title="Bokeh Markers", toolbar_location=None)
  4. p.text(50, 50, text=[text], text_color="firebrick", text_align="center", text_font_size="10pt")
  5. save(p, filename='test.png')
  6.  
  7. C:Users~Anaconda3libsite-packagesbokehio.py:430: UserWarning: save() called but no resources were supplied and output_file(...) was never called, defaulting to resources.CDN
  8. warnings.warn("save() called but no resources were supplied and output_file(...) was never called, defaulting to resources.CDN")
  9.  
  10. C:Users~Anaconda3libsite-packagesbokehio.py:440: UserWarning: save() called but no title was supplied and output_file(...) was never called, using default title 'Bokeh Plot'
  11. warnings.warn("save() called but no title was supplied and output_file(...) was never called, using default title 'Bokeh Plot'")
  12.  
  13. from bokeh.plotting import output_file
  14. output_file('test.png')
  15.  
  16. self._file = {
  17. 'filename' : filename,
  18. 'resources' : Resources(mode=mode, root_dir=root_dir),
  19. 'title' : title
  20. }
Add Comment
Please, Sign In to add comment