☰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

Create isosceles triangles

Community Support
Hoxbro
Hoxbro

I want to create a plot which shows the wind speed with the wind direction at each point, something like this:

But I have hit a roadblock when creating the triangles which represent the wind direction. The triangle in Bokeh is equilateral and I want the triangles to be isosceles, so it clearly show the direction.

Is there a way to do this?

Can see there is a non-glyph method described here: python - Is it possible to easily modify/create a custom scatter marker for bokeh plots? - Stack Overflow. But I feel like there should be a more elegant solution with glyphs.

⌁   Link to post
Bryan
Bryan

A few comments:

  • In the upcoming 2.3 release, arrows will be “vectorizable” but ArrowHeads are not independently drawable, they only drawable as part of a full Arrow (though you could make the arrow shaft be invisible or zero-length)

  • Another option is to use the patches glyph to draw the triangles. You will just need to supply all the actual coordinates explicitly

⌁   Link to post

End of archived discussion · Replies are disabled