Skip to content

Commit

Permalink
Avoid setting batched before the class is initialized (#5814)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt authored Jul 19, 2023
1 parent 513be29 commit 2138f4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/plotting/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,6 @@ def __init__(self, element, keys=None, ranges=None, dimensions=None,
self.zorder = zorder
self.cyclic_index = cyclic_index
self.overlaid = overlaid
self.batched = batched
self.overlay_dims = overlay_dims

if not isinstance(element, (HoloMap, DynamicMap)):
Expand All @@ -1179,7 +1178,7 @@ def __init__(self, element, keys=None, ranges=None, dimensions=None,
self.stream_sources = compute_overlayable_zorders(self.hmap)

plot_element = self.hmap.last
if self.batched and not isinstance(self, GenericOverlayPlot):
if batched and not isinstance(self, GenericOverlayPlot):
plot_element = plot_element.last

dynamic = isinstance(element, DynamicMap) and not element.unbounded
Expand All @@ -1203,6 +1202,7 @@ def __init__(self, element, keys=None, ranges=None, dimensions=None,
self.param.warning(self._deprecations[p])
super().__init__(keys=keys, dimensions=dimensions,
dynamic=dynamic, **applied_params)
self.batched = batched
self.streams = get_nested_streams(self.hmap) if streams is None else streams

# Attach streams if not overlaid and not a batched ElementPlot
Expand Down

0 comments on commit 2138f4f

Please sign in to comment.