Skip to content

Commit

Permalink
Fixed setting of colorbar border
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Sep 14, 2016
1 parent 65c0d21 commit c211f2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions holoviews/plotting/bokeh/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,17 +694,17 @@ def _draw_colorbar(self, plot, color_mapper):
ticker = LogTicker()
else:
ticker = BasicTicker()
cbar_opts = dict(self.colorbar_specs[self.colorbar_position],
bar_line_color='black', label_standoff=8,
major_tick_line_color='black')
cbar_opts = dict(self.colorbar_specs[self.colorbar_position])

# Check if there is a colorbar in the same position
pos = cbar_opts['pos']
if any(isinstance(model, ColorBar) for model in getattr(plot, pos, [])):
return

opts = dict(cbar_opts['opts'], bar_line_color='black',
label_standoff=8, major_tick_line_color='black')
color_bar = ColorBar(color_mapper=color_mapper, ticker=ticker,
**dict(cbar_opts['opts'], **self.colorbar_opts))
**dict(opts, **self.colorbar_opts))

plot.add_layout(color_bar, pos)
self.handles['colorbar'] = color_bar
Expand Down

0 comments on commit c211f2a

Please sign in to comment.