Hide Axis in Bokeh Hide Axis in Bokeh python python

Hide Axis in Bokeh


Create a figure object.
So, in your example the figure object is p1,then p1.axis.visible = False
If you want to specify a y or x axis, then usep1.xaxis.visible = Falseor p1.yaxis.visible = False


Set the axes parameters in the figure object:

p1 <- figure(xaxes = FALSE, yaxes = FALSE)

or if you also want to hide the grid lines:

p1 <- figure(xgrid = FALSE, ygrid = FALSE, xaxes = FALSE, yaxes = FALSE)

Details are here:https://hafen.github.io/rbokeh/rd.html#ly_segments