From ac84f45787e2427ba180a1798aad331108725592 Mon Sep 17 00:00:00 2001 From: Martin Chase Date: Thu, 20 May 2021 07:22:49 -0700 Subject: [PATCH] callable luts still need to be put onto a substrate (#1791) --- pyqtgraph/graphicsItems/ImageItem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyqtgraph/graphicsItems/ImageItem.py b/pyqtgraph/graphicsItems/ImageItem.py index 83016cc8..016dda9d 100644 --- a/pyqtgraph/graphicsItems/ImageItem.py +++ b/pyqtgraph/graphicsItems/ImageItem.py @@ -411,7 +411,7 @@ class ImageItem(GraphicsObject): if self.image.ndim == 2 or self.image.shape[2] == 1: self.lut = self._ensure_proper_substrate(self.lut, self._xp) if isinstance(self.lut, Callable): - lut = self.lut(self.image) + lut = self._ensure_proper_substrate(self.lut(self.image), self._xp) else: lut = self.lut else: