Skip to content

Commit 71f6716

Browse files
committed
Fix integer step size
1 parent 7b48bc3 commit 71f6716

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/napari_matplotlib/histogram.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def draw(self) -> None:
7272
# whole cube into memory.
7373
if data.dtype.kind == "i":
7474
# Make sure integer data types have integer sized bins
75-
step = (np.max(data) - np.min(data)) // 100
75+
step = 1 + (np.max(data) - np.min(data)) // 100
7676
bins = np.arange(np.min(data), np.max(data) + step, step)
7777
else:
7878
bins = np.linspace(np.min(data), np.max(data), 100)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy