scanpy.pl.dpt_groups_pseudotime

scanpy.pl.dpt_groups_pseudotime#

scanpy.pl.dpt_groups_pseudotime(adata, *, color_map=None, palette=None, show=None, save=None, marker='.')[source]#

Plot groups and pseudotime.

Parameters:
adata AnnData

Annotated data matrix.

color_map str | Colormap | None (default: None)

Color map to use for continous variables. Can be a name or a Colormap instance (e.g. "magma”, "viridis" or mpl.cm.cividis), see get_cmap(). If None, the value of mpl.rcParams["image.cmap"] is used. The default color_map can be set using set_figure_params().

palette Sequence[str] | Cycler | None (default: None)

Colors to use for plotting categorical annotation groups. The palette can be a valid ListedColormap name ('Set2', 'tab20', …), a Cycler object, a dict mapping categories to colors, or a sequence of colors. Colors must be valid to matplotlib. (see is_color_like()). If None, mpl.rcParams["axes.prop_cycle"] is used unless the categorical variable already has colors stored in adata.uns["{var}_colors"]. If provided, values of adata.uns["{var}_colors"] will be set.

show bool | None (default: None)

Show the plot, do not return axis.

save bool | str | None (default: None)

If True or a str, save the figure. A string is appended to the default filename. Infer the filetype if ending on {'.pdf', '.png', '.svg'}.

marker str | Sequence[str] (default: '.')

Marker style. See markers for details.