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 86fbedc commit 109418eCopy full SHA for 109418e
src/napari_matplotlib/histogram.py
@@ -26,8 +26,9 @@ def _get_bins(data: npt.NDArray[Any]) -> npt.NDArray[Any]:
26
step = np.ceil(np.ptp(data) / 100)
27
return np.arange(np.min(data), np.max(data) + step, step)
28
else:
29
- # For other data types, just have 128 evenly spaced bins
30
- return np.linspace(np.min(data), np.max(data), 100)
+ # For other data types, just have 100 evenly spaced bins
+ # (and 101 bin edges)
31
+ return np.linspace(np.min(data), np.max(data), 101)
32
33
34
class HistogramWidget(SingleAxesWidget):
0 commit comments