Skip to content

palette argument has no effect on plotting colors in pl.render_shapes() #145

Description

@sopvdl

Hi there, thanks for this great tool! Super useful so far, but I'm running into some issues trying specify colors for categorical values with pl.render_shapes().

Specifying colors with the palette argument, I get my desired colors in the legend but not in the plot itself.

sdata.pl.render_shapes('cell_boundaries', color='graphclust', palette=ListedColormap(['blue', 'red']), groups=['2', '9']).pl.show(ax=ax, title='clusters')

I've tried many things, also without the groups argument but so far haven't been able to use palette to specify colors for categorical values in the plot itself. Would be great to be able to do this because the standard colors can be hard to see :)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions