# リスト7.10.1:主目盛り線の書式設定
from bokeh.plotting import figure, output_notebook, show
output_notebook()
p = figure(plot_width=200, plot_height=200)
p.circle([0], [0])
p.grid.grid_line_width = 3
p.xgrid.grid_line_color = "red"
p.xgrid.grid_line_alpha = 0.5
p.ygrid.grid_line_dash = "dashed"
show(p)
# リスト7.10.2:補助目盛り線の書式設定
p = figure(plot_width=200, plot_height=200)
p.circle([0], [0])
p.ygrid.minor_grid_line_color = "black"
p.ygrid.minor_grid_line_alpha = 0.2
show(p)
# リスト7.10.3:網掛けの設定
p = figure(plot_width=200, plot_height=200)
p.circle([0, 1, 2], [0, 1, 2])
p.ygrid.band_fill_color = "red"
p.ygrid.band_fill_alpha = 0.1
show(p)
# リスト7.10.4:目盛り線の範囲設定
p = figure(plot_width=200, plot_height=200)
p.circle([0], [0])
p.grid.bounds = (-0.25, 0.25)
show(p)