alexfrize
alexfrize

Reputation: 1102

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.

enter image description here In this case 'UK' is inactive. Now it has grey background. Is it possible to change it?

Thanks.

Upvotes: 1

Views: 338

Answers (1)

bigreddot
bigreddot

Reputation: 34568

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

e.g. plot.legend.inactive_fill_color = "blue"

Upvotes: 3

Related Questions