0% found this document useful (0 votes)
35 views1 page

191 - Plot Properties

This document discusses plot properties in Bokeh that can be used to customize a plot's style, including setting the plot width and height, removing minor ticks, adding axis labels, and modifying the title text, color, font, and font style. It provides examples of code to configure these properties.

Uploaded by

jd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views1 page

191 - Plot Properties

This document discusses plot properties in Bokeh that can be used to customize a plot's style, including setting the plot width and height, removing minor ticks, adding axis labels, and modifying the title text, color, font, and font style. It provides examples of code to configure these properties.

Uploaded by

jd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Plot Properties

Section 17, Lecture 191


You can add a title to the plot, set the figure width and height, change title
font, etc. Below is a summary of properties can be added to change the style
of the plot:
1. import pandas
2. from bokeh.plotting import figure, output_file, show
3.
4. p=figure(plot_width=500,plot_height=400, tools='pan',logo=None)
5.
6. p.title.text="Cool Data"
7. p.title.text_color="Gray"
8. p.title.text_font="times"
9. p.title.text_font_style="bold"
10. p.xaxis.minor_tick_line_color=None
11. p.yaxis.minor_tick_line_color=None
12. p.xaxis.axis_label="Date"
13. p.yaxis.axis_label="Intensity"
14.
15. p.line([1,2,3],[4,5,6])
16. output_file("graph.html")
17. show(p)

You might also like