Skip to content

Commit

Permalink
Do not set clipping_colors by default
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Oct 12, 2016
1 parent 7c15969 commit eebdaad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion holoviews/plotting/bokeh/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ class ColorbarPlot(ElementPlot):
location, orientation, height, width, scale_alpha, title, title_props,
margin, padding, background_fill_color and more.""")

clipping_colors = param.Dict(default={'NaN': (0, 0, 0, 1)}, doc="""
clipping_colors = param.Dict(default={}, doc="""
Dictionary to specify colors for clipped values, allows setting
color for NaN values and for values above and below the min and
max value.""")
Expand Down
8 changes: 4 additions & 4 deletions holoviews/plotting/mpl/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ class ColorbarPlot(ElementPlot):
colorbar = param.Boolean(default=False, doc="""
Whether to draw a colorbar.""")

clipping_colors = param.Dict(default={'NaN': (0, 0, 0, 1)}, doc="""
clipping_colors = param.Dict(default={}, doc="""
Dictionary to specify colors for clipped values, allows setting
color for NaN values and for values above and below the min and
max value.""")
Expand Down Expand Up @@ -664,9 +664,9 @@ def _norm_kwargs(self, element, ranges, opts, vdim):
'alpha': val[3] if len(val) > 3 else 1}
elif isinstance(val, util.basestring):
colors[k] = {'color': val}
if 'max' in colors: cmap.set_over(colors['max'])
if 'min' in colors: cmap.set_under(colors['min'])
if 'NaN' in colors: cmap.set_bad(colors['NaN'])
if 'max' in colors: cmap.set_over(**colors['max'])
if 'min' in colors: cmap.set_under(**colors['min'])
if 'NaN' in colors: cmap.set_bad(**colors['NaN'])
opts['cmap'] = cmap


Expand Down

0 comments on commit eebdaad

Please sign in to comment.