Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1aa3efd

Browse filesBrowse files
committed
Actually don't read all bins into memory...
1 parent 38fbccd commit 1aa3efd
Copy full SHA for 1aa3efd

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/napari_matplotlib/histogram.py

Copy file name to clipboardExpand all lines: src/napari_matplotlib/histogram.py
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.