We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9bae23 commit 5200e02Copy full SHA for 5200e02
src/spatialdata_plot/pl/utils.py
@@ -852,9 +852,8 @@ def _set_color_source_vec(
852
853
color_source_vector = pd.Categorical(color_source_vector) # convert, e.g., `pd.Series`
854
855
- # TODO check why table_name is not passed here.
856
color_mapping = _get_categorical_color_mapping(
857
- adata=sdata["table"],
+ adata=sdata[table_name],
858
cluster_key=value_to_plot,
859
color_source_vector=color_source_vector,
860
cmap_params=cmap_params,
0 commit comments