Skip to content

Commit

Permalink
Merge 5c34b33 into 5c0a7f3
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Feb 11, 2016
2 parents 5c0a7f3 + 5c34b33 commit ff7b195
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion holoviews/plotting/bokeh/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
mpl = None
import param

from ...core import Store, HoloMap, Overlay, DynamicMap, CompositeOverlay
from ...core import (Store, HoloMap, Overlay, DynamicMap,
CompositeOverlay, Element)
from ...core import util
from ...element import RGB
from ..plot import GenericElementPlot, GenericOverlayPlot
Expand Down Expand Up @@ -149,6 +150,8 @@ def __init__(self, element, plot=None, show_labels=['x', 'y'], **params):
self.current_ranges = None
super(ElementPlot, self).__init__(element, **params)
self.handles = {} if plot is None else self.handles['plot']
element_ids = self.hmap.traverse(lambda x: id(x), [Element])
self.static = len(set(element_ids)) == 1 and len(self.keys) == len(self.hmap)


def _init_tools(self, element):
Expand Down Expand Up @@ -499,6 +502,8 @@ def current_handles(self):
Returns a list of the plot objects to update.
"""
handles = []
if self.static and not self.dynamic:
return handles
for handle in self._update_handles:
if handle in self.handles:
handles.append(self.handles[handle])
Expand Down

0 comments on commit ff7b195

Please sign in to comment.