简体   繁体   English

非活动图例的 Python 散景图例颜色

[英]Python bokeh legend color for inactive legends

Want to change the background for inactive legend, then you click on it.想要更改非活动图例的背景,然后单击它。

Couldn't find in in docs.在文档中找不到。 Which is very strange.这很奇怪。

在此处输入图片说明 In this case 'UK' is inactive.在这种情况下,“UK”处于非活动状态。 Now it has grey background.现在它有灰色背景。 Is it possible to change it?有没有可能改变它?

Thanks.谢谢。

Couldn't find in in docs.在文档中找不到。

It's in the reference guide:它在参考指南中:

https://docs.bokeh.org/en/latest/docs/reference/models/annotations.html#bokeh.models.annotations.Legend.inactive_fill_color https://docs.bokeh.org/en/latest/docs/reference/models/annotations.html#bokeh.models.annotations.Legend.inactive_fill_color

eg plot.legend.inactive_fill_color = "blue"例如plot.legend.inactive_fill_color = "blue"

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

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