Skip to content

Commit 1aa3efd

Browse files
committed
Actually don't read all bins into memory...
1 parent 38fbccd commit 1aa3efd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/napari_matplotlib/histogram.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def draw(self) -> None:
4343

4444
# Important to calculate bins after slicing 3D data, to avoid reading
4545
# whole cube into memory.
46-
bins = np.linspace(np.min(layer.data), np.max(layer.data), 100)
46+
bins = np.linspace(np.min(data), np.max(data), 100)
4747

4848
if layer.rgb:
4949
# Histogram RGB channels independently

0 commit comments

Comments
 (0)