Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python : Bokeh : make frame invisible

Tags:

python

bokeh

I am playing around with Bokeh for some time now and am really amazed how easy it is to create beautiful charts.

There is one visual thing I am not able to solve, however.

If I turn of background and borders all my charts still have some kind of border / frame. Can you turn this off as well?

E.g. If I use the following code to turn off my background, border and axis I still end up with a frame around the plot figure.

p.xaxis.visible = False
p.yaxis.visible = False 
p.xgrid.visible = False
p.ygrid.visible = False
p.background_fill_color = None
p.border_fill_color = None

Here is my plot example.

Any idea how to get rid of the grey frame?

Thanks for your help!

like image 535
FredMaster Avatar asked Dec 03 '22 13:12

FredMaster


1 Answers

You can remove it by setting p.outline_line_color to None.

Also by the way you can set p.axis.visible and p.grid.visible you don't need to specify the x and y axes separately

like image 68
bourneeoo Avatar answered Dec 26 '22 18:12

bourneeoo