We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd52be3 commit e80e867Copy full SHA for e80e867
src/spatialdata_plot/pl/render.py
@@ -961,7 +961,8 @@ def _render_labels(
961
)
962
963
# rasterize could have removed labels from label
964
- if rasterize:
+ # only problematic if color is specified
965
+ if rasterize and color is not None:
966
labels_in_rasterized_image=np.unique( label.values )
967
mask=np.isin( instance_id, labels_in_rasterized_image )
968
instance_id=instance_id[mask]
0 commit comments