Skip to content

Commit 5200e02

Browse files
committed
fix table_name
1 parent c9bae23 commit 5200e02

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/spatialdata_plot/pl/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,9 +852,8 @@ def _set_color_source_vec(
852852

853853
color_source_vector = pd.Categorical(color_source_vector) # convert, e.g., `pd.Series`
854854

855-
# TODO check why table_name is not passed here.
856855
color_mapping = _get_categorical_color_mapping(
857-
adata=sdata["table"],
856+
adata=sdata[table_name],
858857
cluster_key=value_to_plot,
859858
color_source_vector=color_source_vector,
860859
cmap_params=cmap_params,

0 commit comments

Comments
 (0)