Skip to content

Commit

Permalink
Only set allowed options
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jul 3, 2016
1 parent 4971b5f commit 439dd7b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion holoviews/plotting/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,13 @@ def __init__(self, element, keys=None, ranges=None, dimensions=None,
super(GenericElementPlot, self).__init__(keys=keys, dimensions=dimensions,
dynamic=dynamic,
**dict(params, **plot_opts))

# Update plot and style options for batched plots
if self.batched:
self.ordering = util.layer_sort(self.hmap)
self.set_param(**self.lookup_options(self.hmap.last, 'plot').options)
overlay_opts = self.lookup_options(self.hmap.last, 'plot').options.items()
opts = {k: v for k, v in overlay_opts if k in self.params()}
self.set_param(**opts)
self.style = self.lookup_options(plot_element, 'style').max_cycles(len(self.ordering))
else:
self.ordering = []
Expand Down

0 comments on commit 439dd7b

Please sign in to comment.