Skip to content

Commit

Permalink
Merge aed81db into f645b44
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 25, 2019
2 parents f645b44 + aed81db commit 8b01e6b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions holoviews/plotting/bokeh/element.py
Expand Up @@ -23,7 +23,7 @@
from bokeh.models.widgets import Panel, Tabs
from bokeh.plotting.helpers import _known_tools as known_tools

from ...core import DynamicMap, CompositeOverlay, Element, Dimension
from ...core import DynamicMap, CompositeOverlay, Element, Dimension, Dataset
from ...core.options import abbreviated_exception, SkipRendering
from ...core import util
from ...element import Graph, VectorField, Path, Contours, Tiles
Expand Down Expand Up @@ -953,16 +953,17 @@ def _apply_transforms(self, element, data, ranges, style, group=None):
'as not all dimensions could be resolved.' % (k, v))
continue

if len(v.ops) == 0 and v.dimension in self.overlay_dims:
val = self.overlay_dims[v.dimension]
if v.dimension in self.overlay_dims:
ds = Dataset([self.overlay_dims[v.dimension]], v.dimension)
val = v.apply(ds, ranges=ranges, flat=True)[0]
elif isinstance(element, Path) and not isinstance(element, Contours):
val = np.concatenate([v.apply(el, ranges=ranges, flat=True)[:-1]
for el in element.split()])
else:
val = v.apply(element, ranges=ranges, flat=True)

if (not util.isscalar(val) and len(util.unique_array(val)) == 1 and
(not 'color' in k or validate('color', val))):
((not 'color' in k or validate('color', val)) or k in self._nonvectorized_styles)):
val = val[0]

if not util.isscalar(val):
Expand Down

0 comments on commit 8b01e6b

Please sign in to comment.