Merge pull request #600 from miranis/patch-2

Update ImageItem.py
This commit is contained in:
Luke Campagnola 2018-01-29 20:36:09 -08:00 committed by GitHub
commit a06ca1df29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -334,7 +334,7 @@ class ImageItem(GraphicsObject):
sl = [slice(None)] * data.ndim
sl[ax] = slice(None, None, 2)
data = data[sl]
return nanmin(data), nanmax(data)
return np.nanmin(data), np.nanmax(data)
def updateImage(self, *args, **kargs):
## used for re-rendering qimage from self.image.