From 6f1ea29fe4f44ed20a19ccb84d0c2e04f12fd9c0 Mon Sep 17 00:00:00 2001 From: KIU Shueng Chuan Date: Tue, 17 Aug 2021 22:14:13 +0800 Subject: [PATCH] bugfix: result of clip_array() not assigned --- pyqtgraph/colormap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyqtgraph/colormap.py b/pyqtgraph/colormap.py index 7bd4981b..5d985ad4 100644 --- a/pyqtgraph/colormap.py +++ b/pyqtgraph/colormap.py @@ -331,7 +331,7 @@ def modulatedBarData(length=768, width=32): data = np.zeros( (length, width) ) for idx in range(width): data[:,idx] = gradient + (idx/(width-1)) * modulation - clip_array(data, 0.0, 1.0) + clip_array(data, 0.0, 1.0, out=data) return data class ColorMap(object):