Skip to content

Commit 3ddc08b

Browse files
committed
fix: fix legendgram breaks bug
1 parent 6951236 commit 3ddc08b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/histolytics/utils/plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ def legendgram(
240240

241241
# Check if breaks are provided, if not, calculate them
242242
if breaks is None:
243-
min_val = int(np.round((y.min()), 1))
244-
max_val = int(np.round((y.max()), 1))
243+
min_val = np.round((y.min()), 1)
244+
max_val = np.round((y.max()), 1)
245245
step = np.round(((max_val - min_val) / n_bins), 3)
246246
breaks = np.arange(min_val, max_val, step)
247247

0 commit comments

Comments
 (0)