Skip to content

Commit e80e867

Browse files
committed
color not specified
1 parent bd52be3 commit e80e867

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/spatialdata_plot/pl/render.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,8 @@ def _render_labels(
961961
)
962962

963963
# rasterize could have removed labels from label
964-
if rasterize:
964+
# only problematic if color is specified
965+
if rasterize and color is not None:
965966
labels_in_rasterized_image=np.unique( label.values )
966967
mask=np.isin( instance_id, labels_in_rasterized_image )
967968
instance_id=instance_id[mask]

0 commit comments

Comments
 (0)