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 d56942b commit 11590b2Copy full SHA for 11590b2
src/napari_matplotlib/histogram.py
@@ -208,7 +208,7 @@ def draw(self) -> None:
208
# whole cube into memory.
209
if data.dtype.kind in {"i", "u"}:
210
# Make sure integer data types have integer sized bins
211
- step = abs(self.bins_stop - self.bins_start) // self.bins_num
+ step = abs(self.bins_stop - self.bins_start) // (self.bins_num - 1)
212
step = max(1, step)
213
bins = np.arange(self.bins_start, self.bins_stop + step, step)
214
else:
0 commit comments