Skip to content

Commit adb6bb8

Browse files
authored
Fix "xarray has no attribute reshape" (#208)
1 parent 09a31ad commit adb6bb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spatialdata_plot/pl/render.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ def _render_labels(
663663
else:
664664
# Default: no alpha, contour = infill
665665
label = _map_color_seg(
666-
seg=label,
666+
seg=label.values,
667667
cell_id=instance_id,
668668
color_vector=color_vector,
669669
color_source_vector=color_source_vector,

0 commit comments

Comments
 (0)