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
Different sizes not used for selection & nonselection glyphs #2367
Comments
Current behavior is as designed and documented, i.e. only "visual" (line and fill) props are considered for selection/nonselection/hover policies. Changing to |
An alternative short-term help would be to issue a validation warning |
This is a recurring problem when creating more complex visualizations. Recently I was bit by this in PR #4312, where I wanted to make pie chart's selected slice to stand out, but I can't change selection annular wedge's x, y coordinates, because those are bound to the main glyph. My proposal is to change definition of
where |
As noted in #6980 the general ask is to be able to have another marker or glyph type. |
noting that this would fall out of #10403 as I envision it at least |
Ref. bokeh#2367. That the glyphs for `nonselection_glyph` and `hover_glyph` is not affected by size, etc. bit me in the back, and apparently has confused many others as well, judging from the issue tracker. I think this behaviour is very unexpected, and deserves a warning level note. Also, I think it would be great to be more explicit about what *visual* properties are, or link to where to find that. For me, it is for example not obvious that size is not a visual property. I would love to to it myself, but I am not familiar enough with Bokeh to do that.
Ref. #2367. That the glyphs for `nonselection_glyph` and `hover_glyph` is not affected by size, etc. bit me in the back, and apparently has confused many others as well, judging from the issue tracker. I think this behaviour is very unexpected, and deserves a warning level note. Also, I think it would be great to be more explicit about what *visual* properties are, or link to where to find that. For me, it is for example not obvious that size is not a visual property. I would love to to it myself, but I am not familiar enough with Bokeh to do that.
Ref. #2367. That the glyphs for `nonselection_glyph` and `hover_glyph` is not affected by size, etc. bit me in the back, and apparently has confused many others as well, judging from the issue tracker. I think this behaviour is very unexpected, and deserves a warning level note. Also, I think it would be great to be more explicit about what *visual* properties are, or link to where to find that. For me, it is for example not obvious that size is not a visual property. I would love to to it myself, but I am not familiar enough with Bokeh to do that.
See the example here:
http://nbviewer.ipython.org/github/birdsarah/bokeh-miscellany/blob/master/notebooks/Different%20size%20for%20selected%20%26%20not%20selected%20demo.ipynb
Simplified for clarity:
The size that is used is whatever is passed as the second argument to add_glyph.
The text was updated successfully, but these errors were encountered: