SOAPy_st.pl.show_curves_cluster
- SOAPy_st.pl.show_curves_cluster(adata: AnnData, method: Literal['poly', 'loess'] = 'poly', show_standard_error: bool = True, SE_alpha: float | None = None, palette: Sequence[str] | ListedColormap | None = None, title: str | None = None, figsize: Tuple[float, float] | None = None, dpi: int = 100, ax: Axes | None = None, grid: bool = False, show: bool = True, save: str | PathLike | None = None, legend_kwargs: dict = {}, **kwargs: Any) Axes | None
Plot the tendency curve of the gene clusters.
Parameters
- adataanndata.AnnData
An AnnData object containing spatial omics data and spatial information.
- figsizeTuple[float, float], optional
(Width, height) of the figure.
- dpifloat, optional
The resolution of the figure.
- titlestr, optional
The title of shown figure.
- axAxes
A matplotlib axes object.
- showbool
Show the plot, do not return axis.
- saveUnion[str, PathLike], optional
The path where the image is stored.
- methodLiteral[‘poly’, ‘loess’], optional
Polynomial regression(poly) or Loess regression(loess).
- show_standard_errorbool
Plot the standard error margin of the clustering curve.
- SE_alphabool
Transparency between the drawn standard errors
- paletteUnion[Sequence[str], ListedColormap], optional
Colors to use for plotting annotation groups.
- titlestr, optional
The title of figure
- gridbool
Whether to add grid or not.
- legend_kwargsdict, optional
Other params of plt.legend(). Only used in ‘one_axes == True’.
- kwargsAny
Other params of ax.plot()
Returns
If show==False, return Axes.