Skip to content

Commit

Permalink
Merge pull request #1440 from ioam/empty_el_fix
Browse files Browse the repository at this point in the history
Fix for initializing batched plot with empty element
  • Loading branch information
jlstevens committed May 15, 2017
2 parents 9909c29 + d339337 commit 831e9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/plotting/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ def __init__(self, element, keys=None, ranges=None, dimensions=None,

plot_element = self.hmap.last
if self.batched and not isinstance(self, GenericOverlayPlot):
plot_element = [el for el in plot_element if el][-1]
plot_element = plot_element.last

self.top_level = keys is None
if self.top_level:
Expand Down

0 comments on commit 831e9c4

Please sign in to comment.