-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Bokeh selection colors #1220
Bokeh selection colors #1220
Conversation
beb8d87
to
764145d
Compare
4880f58
to
f07ea14
Compare
Just curious but what is a |
The amount of alpha to use when something is muted? |
Ah, now I get it - maybe |
Right before this I had only added support for |
Sounds good. Great stuff! |
b472775
to
456f110
Compare
holoviews/plotting/bokeh/chart.py
Outdated
@@ -45,7 +46,7 @@ class PointPlot(LegendPlot, ColorbarPlot): | |||
Function applied to size values before applying scaling, | |||
to remove values lower than zero.""") | |||
|
|||
style_opts = (['cmap', 'palette', 'marker', 'size', 's', 'alpha', 'color', | |||
style_opts = (['cmap', 'palette', 'marker', 'size', 's', 'color', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel style_opts
should be a set - something for 2.0 perhaps? I am assuming 'alpha' was being duplicated...
@@ -170,7 +148,7 @@ class VectorFieldPlot(ColorbarPlot): | |||
Whether the lengths will be rescaled to take into account the | |||
smallest non-zero distance between two vectors.""") | |||
|
|||
style_opts = ['color'] + line_properties | |||
style_opts = line_properties |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to see this simplified.
Looks good! I'll merge once the tests pass. |
Tests are passing. Merging. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
As requested in #1139 this adds full control over selection and unselection glyph styles letting you apply custom colors and alphas. Additionally this also adds control of a new feature in bokeh 0.12.5, which is muting glyphs with an interactive legend, this styling can also be controlled via style option but default to a
alpha=0.2
. This means all our bokeh legends are now clickable.