spatialdata-plot icon indicating copy to clipboard operation
spatialdata-plot copied to clipboard

Plotting multiple genes

Open wangjiawen2013 opened this issue 6 months ago • 2 comments

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

wangjiawen2013 avatar Aug 13 '24 03:08 wangjiawen2013