From af843275ee2bc43e9c85ecc89beccbde5a597472 Mon Sep 17 00:00:00 2001 From: Philipp Rudiger Date: Mon, 7 Oct 2019 18:15:56 +0200 Subject: [PATCH] Fix Image element bounds check (#4035) --- 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 a8e6def795..09a69a1742 100644 --- a/holoviews/element/raster.py +++ b/holoviews/element/raster.py @@ -312,8 +312,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)