We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee3b56d commit 0a0a81dCopy full SHA for 0a0a81d
src/spatialdata_plot/pl/utils.py
@@ -929,9 +929,9 @@ def _get_categorical_color_mapping(
929
if isinstance(groups, str):
930
groups = [groups]
931
932
- if not palette and render_type == "points":
933
- if cmap_params is not None and not cmap_params.cmap_is_default:
934
- palette = cmap_params.cmap
+ if not palette and render_type == "points" and cmap_params is not None and not cmap_params.cmap_is_default:
+ palette = cmap_params.cmap
+
935
color_idx = color_idx = np.linspace(0, 1, len(color_source_vector.categories))
936
if isinstance(palette, ListedColormap):
937
palette = [to_hex(x) for x in palette(color_idx, alpha=alpha)]
0 commit comments