From 32dce76c1c23a3db1c0557c2112e01950c974be4 Mon Sep 17 00:00:00 2001 From: Aleksandr Semenenko Date: Sun, 1 May 2022 01:48:20 +0300 Subject: [PATCH 1/2] #2283 delete limitation by rectangle width --- pyqtgraph/graphicsItems/ROI.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pyqtgraph/graphicsItems/ROI.py b/pyqtgraph/graphicsItems/ROI.py index a1f0f458f5..52aecd9dab 100644 --- a/pyqtgraph/graphicsItems/ROI.py +++ b/pyqtgraph/graphicsItems/ROI.py @@ -1197,8 +1197,6 @@ def _getArrayRegionForArbitraryShape(self, data, img, axes=(0,1), returnMappedCo arguments. """ br = self.boundingRect() - if br.width() > 1000: - raise Exception() if returnMappedCoords: sliced, mappedCoords = ROI.getArrayRegion( self, data, img, axes, returnMappedCoords, fromBoundingRect=True, **kwds) From f084a884d558632533f8e3f14adafbe21771bd86 Mon Sep 17 00:00:00 2001 From: Aleksandr Semenenko Date: Sun, 1 May 2022 20:08:56 +0300 Subject: [PATCH 2/2] #2283 delete limitation by rectangle width deleted unused variable --- pyqtgraph/graphicsItems/ROI.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pyqtgraph/graphicsItems/ROI.py b/pyqtgraph/graphicsItems/ROI.py index 52aecd9dab..76bb40c466 100644 --- a/pyqtgraph/graphicsItems/ROI.py +++ b/pyqtgraph/graphicsItems/ROI.py @@ -1196,7 +1196,6 @@ def _getArrayRegionForArbitraryShape(self, data, img, axes=(0,1), returnMappedCo See :meth:`~pyqtgraph.ROI.getArrayRegion` for a description of the arguments. """ - br = self.boundingRect() if returnMappedCoords: sliced, mappedCoords = ROI.getArrayRegion( self, data, img, axes, returnMappedCoords, fromBoundingRect=True, **kwds)