☰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

Embed and make a legend for all 3 diagrams

Community Support
konos1992
konos1992

the first diagram shows what I would like to have and the second where I am currently.
I used 3 figures is it possible to put them in a rectangle as in the photo above and put a legend.

⌁   Link to post
p-himik
p-himik

If you arrange your plots via column or some other layout primitive (as opposed to just calling add_root multiple times when you use bokeh serve), then you can specify css_classes for that primitive and write some CSS that would add a border. How exactly that CSS will be used depends on the way you embed the plots. There are multiple examples online.

Regarding the legend - the images don’t have it so it’s hard to say since I have no idea what you want it to look like. Or if you just mean the labels on the right side, then you can combine each plot in a row with a Div with the required text.

⌁   Link to post

End of archived discussion · Replies are disabled