Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71f6716 commit 166d776Copy full SHA for 166d776
src/napari_matplotlib/histogram.py
@@ -70,7 +70,7 @@ def draw(self) -> None:
70
71
# Important to calculate bins after slicing 3D data, to avoid reading
72
# whole cube into memory.
73
- if data.dtype.kind == "i":
+ if data.dtype.kind in {"i", "u"}:
74
# Make sure integer data types have integer sized bins
75
step = 1 + (np.max(data) - np.min(data)) // 100
76
bins = np.arange(np.min(data), np.max(data) + step, step)
0 commit comments