简体   繁体   English

在 plot 区域之外更改散景 plot 颜色?

[英]Change Bokeh plot color outside of the plot area?

I have a Bokeh plot that is embedded to an HTML page.我有一个嵌入到 HTML 页面的散景 plot。 Is there anyway to change the background color where the text of the x and y axis labels are?有没有办法改变 x 和 y 轴标签文本所在的背景颜色?

I was able to change the plot's background with plot.background_fill_color but can't seem to find a property for the text我能够用plot.background_fill_color更改情节的背景,但似乎找不到文本的属性

Plot image Plot 图像

You want plot.border_fill_color .你想要plot.border_fill_color This is documented here:这记录在这里:

https://docs.bokeh.org/en/latest/docs/user_guide/styling.html#border https://docs.bokeh.org/en/latest/docs/user_guide/styling.html#border

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM