We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42b81a9 commit cbd454aCopy full SHA for cbd454a
src/spatialdata_plot/pl/utils.py
@@ -686,6 +686,8 @@ def _get_colors_for_categorical_obs(
686
if isinstance(palette, str):
687
cmap = plt.get_cmap(palette)
688
palette = [to_hex(x) for x in cmap(color_idx, alpha=alpha)]
689
+ elif isinstance(palette, list):
690
+ palette = [to_hex(x) for x in palette]
691
elif isinstance(palette, ListedColormap):
692
palette = [to_hex(x) for x in palette(color_idx, alpha=alpha)]
693
elif isinstance(palette, LinearSegmentedColormap):
0 commit comments