Show cluster numbers on scanpy UMAP plot like in Featureplot in Seurat


Seurat allows us to set an Ident and when we do a feature plot we can label that feature plot with that ident. If I were to achieve something similar how would I go about it?


Does the legend_loc="on data" do what you’re asking for?

1 Like

Not really. As per my conversation with LuckyMD this functionality is yet to be implemented in scanpy.

Does Scanpy seriously not allow to display Leiden cluster number on genes feature plots, like Seurat?
or I am missing something?

Just do:, color=['leiden'], legend_loc="on data")

It doesn’t work with gene feature plot, only works with leiden.