From 8716018d1c541e9c78399564dcdb465e0f14193c Mon Sep 17 00:00:00 2001 From: jlstevens Date: Thu, 3 Dec 2015 17:16:27 +0000 Subject: [PATCH] Fixed propagation of parameters to Image in RGB __getitem__ --- holoviews/element/raster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/holoviews/element/raster.py b/holoviews/element/raster.py index 2db5f2a4e1..01b7d82614 100644 --- a/holoviews/element/raster.py +++ b/holoviews/element/raster.py @@ -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__")