Skip to content

Plotting multiple genes  #321

Open
Open
@wangjiawen2013

Description

@wangjiawen2013

Hi,
Scanpy/squidpy can plot mutliple genes at once and save as a image file. such as
sc.pl.umap(adata, color=["genes1", "genes2", "genes3"], save="a.pdf")
This is very convinient.
while spatialdata_plot can plot only one genes now and cannot be saved:
sdata.pl.render_shapes("cell_circles", color='genes').pl.show()
It would be nice for the parameter color to support gene list.

This features is not indispensable, becuase we can use plt.subplots to achieve this. But they will bring more convinience and ergonomics, just like scanpy and squidpy.

Besides, there is a parameter ncols in pl.show(), as you can see with help(sdata.pl.render_shapes("cell_circles", color="n_counts").pl.show), but where to use it ? what's the function of it ? It seems that it's useless because we can only plot one gene a time.
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions