From 00fa7ff5e8f92e8238dd64384a0f2ca0375f0d09 Mon Sep 17 00:00:00 2001
From: Philipp Rudiger
Date: Sat, 12 May 2018 19:58:01 +0100
Subject: [PATCH] Allow setting alpha on bokeh Raster/Image
---
holoviews/plotting/bokeh/raster.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/holoviews/plotting/bokeh/raster.py b/holoviews/plotting/bokeh/raster.py
index 1ab3272c3d..b49d6258a4 100644
--- a/holoviews/plotting/bokeh/raster.py
+++ b/holoviews/plotting/bokeh/raster.py
@@ -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):
@@ -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):