How do I remove grid lines from a Bokeh plot?

MRocklin picture MRocklin · Mar 27, 2016 · Viewed 9.2k times · Source

I would like to remove the grid lines from a Bokeh plot. What is the best way to do this?

Answer

Nick picture Nick · Mar 27, 2016

Have a look at the Bokeh line styling documentation

You can hide the lines by setting their grid_line_color to None.

fig.xgrid.grid_line_color = None
fig.ygrid.grid_line_color = None