☰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

Packing multiple legends under single label?

Community Support
mbilyanov
mbilyanov

Hi,

I have two circle glyphs, each at the end and the beginning of a segment. These 3 components are actually representing 1 entity in my plot. Is it possible to group them under 1 single legend item?

Please see the image:

The bit inside the red rectangle should be treated as one single entity. (Please note that the red rectangle is not part of the plot but just a visual indicator.)

I used a legend_group but that seems to be a different thing, I’m getting each of those components as a separate legend item.
Screenshot 2023-07-25 at 17.01.17

It would be nice to just have “Ask” in the legend map, not 3 different ‘ask’ items.

⌁   Link to post
Bryan
Bryan

You can always manually construct a Legend that contains just the legend items you want, there are examples of this in the User’s Guide. Otherwise there is not enough information here to speculate about why you are getting that specific legend presentation above, or to provide any more concrete recommendations. Please (always) provide a complete Minimal Reproducible Example.

⌁   Link to post

End of archived discussion · Replies are disabled