- spac.visualization.tsne_plot(adata, color_column=None, ax=None, **kwargs)[source]
Visualize scatter plot in tSNE basis.
- Parameters:
adata (anndata.AnnData) – The AnnData object with t-SNE coordinates precomputed by the ‘tsne’ function and stored in ‘adata.obsm[“X_tsne”]’.
color_column (str, optional) – The name of the column to use for coloring the scatter plot points.
ax (matplotlib.axes.Axes, optional (default: None)) – A matplotlib axes object to plot on. If not provided, a new figure and axes will be created.
**kwargs – Parameters passed to scanpy.pl.tsne function.
- Returns:
fig (matplotlib.figure.Figure) – The created figure for the plot.
ax (matplotlib.axes.Axes) – The axes of the tsne plot.