Skip to content

Commit d540a3f

Browse files
committed
Merge branch 'plot_labels' of github.com:ArneDefauw/spatialdata-plot into plot_labels
2 parents e80e867 + 54559a5 commit d540a3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spatialdata_plot/pl/render.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,9 +968,9 @@ def _render_labels(
968968
instance_id=instance_id[mask]
969969
color_vector=color_vector[mask]
970970
if pd.api.types.is_categorical_dtype(color_vector.dtype):
971-
color_vector=color_vector.remove_unused_categories()
971+
color_vector = color_vector.remove_unused_categories()
972972
if color_source_vector is not None:
973-
color_source_vector=color_source_vector[mask]
973+
color_source_vector = color_source_vector[mask]
974974

975975
def _draw_labels(seg_erosionpx: int | None, seg_boundaries: bool, alpha: float) -> matplotlib.image.AxesImage:
976976
labels = _map_color_seg(

0 commit comments

Comments
 (0)