Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit610f19c

Browse files
committed
Ensure step size is at least 1
Update baseline images
1 parent1412149 commit610f19c

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

‎src/napari_matplotlib/histogram.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ def draw(self) -> None:
7272
# whole cube into memory.
7373
ifdata.dtype.kindin {"i","u"}:
7474
# Make sure integer data types have integer sized bins
75-
step=1+abs(np.max(data)-np.min(data))//100
75+
step=abs(np.max(data)-np.min(data))//100
76+
step=max(1,step)
7677
bins=np.arange(np.min(data),np.max(data)+step,step)
7778
else:
7879
bins=np.linspace(np.min(data),np.max(data),100)
Loading
Loading

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp