SPACEL.Scube.plot.plot_stacked_slices
- SPACEL.Scube.plot.plot_stacked_slices(ad_list, spatial_key, cluster_key, legend=True, frameon=False, colors=None, i=1, j=1, s=1)
Plot all slices stacked
Plot all slices stacked in one figure with a given number of subplots rows and columns. Spots/cells colored by spatial domain.
- Parameters:
ad_list – A list of
AnnData
objects containing all slices.spatial_key – A string representing one key of
obsm
in AnnData object of all slices, containing the coordinates used to plot.cluster_key – A string representing one column of
obs
in AnnData object of all slices, containing the spatial domain information used to plot.legend – Whether to display the legend.
frameon – Whether to hide the coordinate axes.
colors – A list of colors for each spatial domain to plot. If
None
, it will default totab10
ortab20
accoording to the number of spatial domains.i – Number of rows of the subplots.
j – Number of columns of the subplots. If i=j=1, it will be a single figure.
s – Size of points.
- Returns:
None