SOAPy_st.pl.show_tendency
- SOAPy_st.pl.show_tendency(adata: AnnData, gene_name: str | list, method: str = 'poly', one_axes: bool = True, palette: Sequence[str] | ListedColormap | dict | None = None, norm: bool = False, figsize: Tuple[float, float] | None = None, dpi: int = 100, grid: bool = False, show: bool = True, save: str | PathLike | None = None, legend_kwargs: dict = {}, **kwargs: Any) Axes | Sequence[Axes] | None
Plot the tendency curve of the genes.
Parameters
- adataanndata.AnnData
An AnnData object containing spatial omics data and spatial information.
- gene_nameUnion[list, str, None], optional
The gene names for the regression model need to be calculated.
- methodLiteral[‘poly’, ‘loess’], optional
Polynomial regression(poly) or Loess regression(loess).
- one_axesbool
Whether to plot all curves on the same axis.
- paletteUnion[Sequence[str], Cycler, dict], optional
Colors to use for plotting annotation groups.
- normbool
Normalize the values of the curves.
- figsizeTuple[Any, Any]
The size of format figure.(width, height).
- dpiint
Dots per inch values for the output.
- gridbool
Whether to show the grid or not.
- showbool
Show this plot.
- saveUnion[str, PathLike]
The path where the image is stored.
- legend_kwargsdict, optional
Other params of plt.legend(). Only used in ‘one_axes == True’.
- kwargs
Other params of ax.plot().
Returns
If show==False, return Axes or a list of Axes.