☰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

Adding decoration to MultiLine

Community Supportbokeh
PrateekArya
PrateekArya

Hello!

I am trying to add decorations to MultiLine glyph. Although I see that all the glyphs have ‘decorations=’ keyword, it is not clear how to use it. The documentation says that this keyword can be used to draw arrow heads, and that is exactly I want to do. Here is the code snippet:

ml = MultiLine(xs=‘xs’, ys=‘ys’, line_color=‘black’, decorations=)
p.add_glyph(dataSource, ml)

What should I pass in ‘decorations’ argument so that I get arrow heads at the end of my line?

Thanks in advance :slight_smile:

⌁   Link to post
PrateekArya
PrateekArya

Hi,

Thanks for the quick response! I wrote the code based on the example:

from bokeh.models import VeeHead
ml = p.multi_line(xs='xs', ys='ys', color='black', source=dataSource)
ml.add_decoration(VeeHead(size=10), "end")

The good thing is the code does not throw any exception, but it does not draw arrow heads. So, I am guessing the functionality exists but its not implemented yet. Lets hope it will be in near future!

Anyways for the time being, I can just use more multi_line to draw my arrow heads. :smiley:

⌁   Link to post

End of archived discussion · Replies are disabled