From 168372ab1525ae29814174874c845d69a7b80334 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Mon, 7 Oct 2019 16:58:37 +0200 Subject: [PATCH] Fix Image element bounds check --- holoviews/element/raster.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/holoviews/element/raster.py b/holoviews/element/raster.py index 7eff039a88..b813f28ecf 100644 --- a/holoviews/element/raster.py +++ b/holoviews/element/raster.py @@ -311,8 +311,9 @@ def __init__(self, data, kdims=None, vdims=None, bounds=None, extents=None, bounds = BoundingBox(points=((l, b), (r, t))) data_bounds = None - if self.interface is ImageInterface and not isinstance(data, np.ndarray): + if self.interface is ImageInterface and not isinstance(data, (np.ndarray, Image)): data_bounds = self.bounds.lbrt() + l, b, r, t = bounds.lbrt() xdensity = xdensity if xdensity else util.compute_density(l, r, dim1, self._time_unit) ydensity = ydensity if ydensity else util.compute_density(b, t, dim2, self._time_unit)