muon
muon copied to clipboard
mu.pl.scatter() fails when providing color
Hi!
I'm getting the following error when running mu.pl.scatter() with a provided color:
When setting color=None
, the plotting function does not fail:
I also checked scanpy's sc.pl.scatter()
and it errors as described in scverse/scanpy#1986 and scverse/scanpy#311 when passing the color as a list.
Therefore, when deleting line 75 (color = [color]
) in plot.py, i.e. passing the color as a string instead of a list to the function sc.pl.scatter()
, mu.pl.scatter()
works completely fine and
mu.pl.scatter(data,"rna:CD4","rna:CD8A", color="rna:total_counts")
then produces:
System
- Linux, Ubuntu
- Python version: 3.10
- Versions of libraries involved:
- scanpy: 1.9.6
- muon: 0.1.5