stereo.plots.PlotCollection.spatial_scatter#
- PlotCollection.spatial_scatter(cells_key=['total_counts', 'n_genes_by_counts'], ncols=2, dot_size=None, palette='stereo', width=None, height=None, x_label=['spatial1', 'spatial1'], y_label=['spatial2', 'spatial2'], title=None, vmin=None, vmax=None, **kwargs)[source]#
Spatial distribution of
total_counts
andn_genes_by_counts
.- Parameters:
cells_key (
Optional
[list
]) – specified cells key list.ncols (
Optional
[int
]) – the number of plot columns.dot_size (
Optional
[int
]) – the dot size.palette (
Optional
[str
]) – the color theme.width (
Optional
[int
]) – the figure width in pixels.height (
Optional
[int
]) – the figure height in pixels.x_label (
Optional
[list
]) – list of x label.y_label (
Optional
[list
]) – list of y label.title (
Optional
[str
]) – the title label.show_plotting_scale – wheter to display the plotting scale.
out_path – the path to save the figure.
out_dpi – the dpi when the figure is saved.
reorganize_coordinate –
if the data is merged from several slices, whether to reorganize the coordinates of the obs(cells), if set it to a number, like 2, the coordinates will be reorganized to 2 columns on coordinate system as below:
data1 data2data3 data4data5 …… …if set it to
False
, the coordinates will not be changed.horizontal_offset_additional – the additional offset between each slice on horizontal direction while reorganizing coordinates.
vertical_offset_additional – the additional offset between each slice on vertical direction while reorganizing coordinates.
vmin (
Optional
[float
]) – The value representing the lower limit of the color scale. Values smaller than vmin are plotted with the same color as vmin.vmax (
Optional
[float
]) – The value representing the lower limit of the color scale. Values smaller than vmin are plotted with the same color as vmin.