Skip to content

Commit

Permalink
Fix python2 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Oct 1, 2019
1 parent 317b5fb commit a85b056
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions holoviews/plotting/bokeh/selection.py
Expand Up @@ -24,10 +24,7 @@ def alpha_opts(alpha):
return options

layer_alpha = 1.0 if visible else 0.0
layer_element = element.options(
tools=['box_select'],
**self._get_color_kwarg(layer_color),
**alpha_opts(layer_alpha)
)
merged_opts = dict(self._get_color_kwarg(layer_color), **alpha_opts(layer_alpha))
layer_element = element.options(tools=['box_select'], **merged_opts)

return layer_element
7 changes: 2 additions & 5 deletions holoviews/plotting/plotly/selection.py
Expand Up @@ -20,10 +20,7 @@ def _build_element_layer(
else:
shared_opts = dict()

layer_element = element.options(
visible=visible,
**self._get_color_kwarg(layer_color),
**shared_opts
)
merged_opts = dict(self._get_color_kwarg(layer_color), **shared_opts)
layer_element = element.options(visible=visible, **merged_opts)

return layer_element

0 comments on commit a85b056

Please sign in to comment.