Skip to content

Commit 668831f

Browse files
committed
fix vmin vmax
1 parent 1b9b577 commit 668831f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spatialdata_plot/pl/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,11 +375,11 @@ def _prepare_cmap_norm(
375375
cmap.set_bad("lightgray" if na_color is None else na_color)
376376

377377
if norm is None:
378-
norm = Normalize(vmin=vmin, vmax=vmax)
378+
norm = Normalize(vmin=vmin, vmax=vmax, clip=True)
379379
elif isinstance(norm, Normalize) or not norm:
380380
pass # TODO
381381
elif vcenter is None:
382-
norm = Normalize(vmin=vmin, vmax=vmax)
382+
norm = Normalize(vmin=vmin, vmax=vmax, clip=True)
383383
else:
384384
norm = TwoSlopeNorm(vmin=vmin, vmax=vmax, vcenter=vcenter)
385385

0 commit comments

Comments
 (0)