Disable image downsampling when n=1
This commit is contained in:
parent
1df5103d94
commit
42eae475b9
@ -1222,6 +1222,8 @@ def downsample(data, n, axis=0, xvals='subsample'):
|
|||||||
data = downsample(data, n[i], axis[i])
|
data = downsample(data, n[i], axis[i])
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
if n <= 1:
|
||||||
|
return data
|
||||||
nPts = int(data.shape[axis] / n)
|
nPts = int(data.shape[axis] / n)
|
||||||
s = list(data.shape)
|
s = list(data.shape)
|
||||||
s[axis] = nPts
|
s[axis] = nPts
|
||||||
|
@ -9,6 +9,8 @@ from .GraphicsObject import GraphicsObject
|
|||||||
from ..Point import Point
|
from ..Point import Point
|
||||||
|
|
||||||
__all__ = ['ImageItem']
|
__all__ = ['ImageItem']
|
||||||
|
|
||||||
|
|
||||||
class ImageItem(GraphicsObject):
|
class ImageItem(GraphicsObject):
|
||||||
"""
|
"""
|
||||||
**Bases:** :class:`GraphicsObject <pyqtgraph.GraphicsObject>`
|
**Bases:** :class:`GraphicsObject <pyqtgraph.GraphicsObject>`
|
||||||
|
Loading…
Reference in New Issue
Block a user