Skip to content

Commit

Permalink
Fixed propagation of parameters to Image in RGB __getitem__
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Dec 3, 2015
1 parent 64a8f7c commit 8716018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/element/raster.py
Expand Up @@ -758,7 +758,7 @@ def __getitem__(self, coords):
vidx = self.get_dimension_index(channels[0])
val_index = vidx - self.ndims
data = sliced.data[:,:, val_index]
return Image(data, **dict(self.get_param_values(onlychanged=True),
return Image(data, **dict(util.get_param_values(self),
vdims=[self.vdims[val_index]]))
elif len(channels) > 1:
raise KeyError("Channels can only be selected once in __getitem__")
Expand Down

0 comments on commit 8716018

Please sign in to comment.