Commit 42eae475 authored by Luke Campagnola's avatar Luke Campagnola
Browse files

Disable image downsampling when n=1

parent 1df5103d
......@@ -1222,6 +1222,8 @@ def downsample(data, n, axis=0, xvals='subsample'):
data = downsample(data, n[i], axis[i])
return data
if n <= 1:
return data
nPts = int(data.shape[axis] / n)
s = list(data.shape)
s[axis] = nPts
......
......@@ -9,6 +9,8 @@ from .GraphicsObject import GraphicsObject
from ..Point import Point
__all__ = ['ImageItem']
class ImageItem(GraphicsObject):
"""
**Bases:** :class:`GraphicsObject <pyqtgraph.GraphicsObject>`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment