Search code examples
pythonbokeh

How do I remove grid lines from a Bokeh plot?


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


Solution

  • 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