From 34ad288be68ae726695c1789505b0fcdc162ece8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sophia=20M=C3=A4dler?= <15019107+sophiamaedler@users.noreply.github.com> Date: Sun, 18 May 2025 22:54:52 +0200 Subject: [PATCH] fix #464 --- src/spatialdata_plot/pl/render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spatialdata_plot/pl/render.py b/src/spatialdata_plot/pl/render.py index 52297005..ef49c6ed 100644 --- a/src/spatialdata_plot/pl/render.py +++ b/src/spatialdata_plot/pl/render.py @@ -136,7 +136,7 @@ def _render_shapes( if isinstance(groups, list) and color_source_vector is not None: mask = color_source_vector.isin(groups) shapes = shapes[mask] - shapes = shapes.reset_index() + shapes = shapes.reset_index(drop=True) color_source_vector = color_source_vector[mask] color_vector = color_vector[mask]