Skip to content

abnormal legend #757

Description

@wangjiawen2013

Hi,
I made a figure using:

ggplot(obs,aes(x='library_id',y='percentage',fill='leiden')) + geom_bar(stat='identity') + scale_fill_manual(values=adata.uns['leiden_colors']) + theme(axis_text_x=element_text(angle=45))

The legend is weired, some items were lost (1, 19, 20, and so on):
image

When using plotnine_prism() with the same data, it looks well:
image

I don't want to use plotnine_prism() theme, so how to adjust the legend ?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions