Skip to content

Commit

Permalink
Fixed bug updating Raster/Image/RGB alpha (#3371)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Jan 10, 2019
1 parent 7a5cedc commit bc4b15e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions holoviews/plotting/bokeh/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ def get_data(self, element, ranges, style):
mapping = dict(image='image', x='x', y='y', dw='dw', dh='dh')
val_dim = element.vdims[0]
style['color_mapper'] = self._get_colormapper(val_dim, element, ranges, style)
if 'alpha' in style:
style['global_alpha'] = style['alpha']

if self.static_source:
return {}, mapping, style
Expand Down Expand Up @@ -95,6 +97,9 @@ class RGBPlot(ElementPlot):

def get_data(self, element, ranges, style):
mapping = dict(image='image', x='x', y='y', dw='dw', dh='dh')
if 'alpha' in style:
style['global_alpha'] = style['alpha']

if self.static_source:
return {}, mapping, style

Expand Down

0 comments on commit bc4b15e

Please sign in to comment.