Skip to content

Commit

Permalink
Fixed batched plotting for bokeh PathPlot
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jul 11, 2016
1 parent b87dbbf commit 80df910
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions holoviews/plotting/bokeh/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,11 @@ def get_batched_data(self, element, ranges=None, empty=False):
data[k].extend(eld)
zorder = self.get_zorder(element, key, el)
val = style[zorder].get('color')
elmapping['color'] = 'color'
if isinstance(val, tuple):
val = rgb2hex(val)
data['color'] += [val for _ in range(len(eldata['xs']))]
if len(set(data.get('color'))) == 1:
data.pop('color')
elmapping.pop('color')

if val:
elmapping['line_color'] = 'color'
if isinstance(val, tuple):
val = rgb2hex(val)
data['color'] += [val for _ in range(len(eldata.values()[0]))]
return data, elmapping


Expand Down

0 comments on commit 80df910

Please sign in to comment.