theislab / single-cell-tutorial

Single cell current best practices tutorial case study for the paper:Luecken and Theis, "Current best practices in single-cell RNA-seq analysis: a tutorial"
1.39k stars 458 forks source link

How can we change the plot shape (not only using dot) of UMAP in Scanpy? #101

Closed melancholy12 closed 2 years ago

melancholy12 commented 2 years ago

Now we only plot the UMAP in the shape "●". Can we also plot the UMAP by using “▲” or “■”?

Zethson commented 2 years ago

You can pass a marker as kwarg to https://scanpy.readthedocs.io/en/stable/generated/scanpy.pl.umap.html which gets passed to the marker argument of https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.scatter.html

melancholy12 commented 2 years ago

@Zethson I am a beginner for snRNA sequencing analysis. Could you also share me simple code for this? Because I never use **kwarg function before. Thanks very much!