New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vectorized Arrow Heads #6835
Comments
I think vectorizing |
However, speaking about vectorization and arrows, I would like to put once again the idea under consideration of making arrows glyphs. |
I'd like to add that currently I'm using standard lines and triangle glyphs to simulate a similar result. Biggest problems with this is the fact that the triangles instigate from the center instead of from the end of the line. This means that I would have to 'manually' correct the length of every line to reduce it by half the arrows height in order for it to end in the same position as Arrow. This same problem might occur if you add arrow heads as glyphs. Second problem with this is overlapping of both glyphs creating uneven colours when using an alpha != 1. If at all possible adding arrows as glyphs seems like a fair solution to me? Though it would obviously need separate sizing options for head and line width etc. |
I posted this in the Bokeh Gmail Group before and Bryan advised to open an issue. So here it is (better late then never):
See my sample code below. I'm drawing a whole bunch of arrows in a plot, all arrows have a line weight (lw), an alpha (a) and an arrow line weight (lw_arrow) -basically the arrow size- and start and end coordinates.
Unfortunately when I feed this information to my plot using source it seems impossible to send the 'a' and 'lw_arrow' into the VeeHead function, and it seems only possible to hard code the variables in VeeHead, as I have done now.
What I would like to do instead is the following: end=VeeHead(fill_color="black", size='lw_arrow', fill_alpha='a', line_alpha='a') where 'lw_arrow' and 'a' are coming from source.
The text was updated successfully, but these errors were encountered: