Skip to content

Commit

Permalink
Allow setting alpha on bokeh Raster/Image (#2680)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored and jlstevens committed May 14, 2018
1 parent 32b07e8 commit e131d7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/plotting/bokeh/raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class RasterPlot(ColorbarPlot):
show_legend = param.Boolean(default=False, doc="""
Whether to show legend for the plot.""")

style_opts = ['cmap']
style_opts = ['cmap', 'alpha']
_plot_methods = dict(single='image')

def _hover_opts(self, element):
Expand Down Expand Up @@ -70,7 +70,7 @@ def get_data(self, element, ranges, style):

class RGBPlot(RasterPlot):

style_opts = []
style_opts = ['alpha']
_plot_methods = dict(single='image_rgba')

def get_data(self, element, ranges, style):
Expand Down

0 comments on commit e131d7a

Please sign in to comment.