☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

External legend for an image

Community Support
Bryan
Bryan

Do you mean an image or image_rgba glyph? If so, that is not supported, and it’s not even clear what it could mean. Legends are intended to show representative points, e.g. if you have blue and green scatter points or bars, you can pick a single blue and single green representation for the legend to represent all the blue things, and all the things points. But there is no generic way to pick a “representative part” of an image.

If you mean for image_url, because you are using those for scatter plots, then that could make more sense, but is also not currently supported. (If this is what you mean, please feel free to open a feature request on GitHub).

Is what you are are you actually after a way to hide an image glyph? If so there is no way to do that with a legend and I don’t expect there ever will be. But glyph renderers have a .visible property you could could turn on and off from a button click or other UI event.

⌁   Link to post

End of archived discussion · Replies are disabled