Skip to content
Browse files

Added min_alpha parameter to shade and datashade (#2109)

  • Loading branch information...
jbednar authored and philippjfr committed Nov 9, 2017
1 parent 4e40914 commit d77cee4e51967d85ba6db05c88358ed00f59d569
Showing with 7 additions and 1 deletion.
  1. +7 −1 holoviews/operation/
@@ -530,6 +530,12 @@ class shade(Operation):
Disable when you do not want the resulting plot to be interactive,
e.g. when trying to display an interactive plot a second time.""")

min_alpha = param.Number(default=40, doc="""
The minimum alpha value to use for non-empty pixels when doing
colormapping, in [0, 255]. Use a higher value to avoid
undersaturation, i.e. poorly visible low-value datapoints, at
the expense of the overall dynamic range..""")

def concatenate(cls, overlay):
@@ -577,7 +583,7 @@ def _process(self, element, key=None):

# Compute shading options depending on whether
# it is a categorical or regular aggregate
shade_opts = dict(how=self.p.normalization)
shade_opts = dict(how=self.p.normalization, min_alpha=self.p.min_alpha)
if element.ndims > 2:
kdims = element.kdims[1:]
categories = array.shape[-1]

0 comments on commit d77cee4

Please sign in to comment.
You can’t perform that action at this time.