scHopfield.plotting.plot_jacobian_eigenvalue_spectrum

scHopfield.plotting.plot_jacobian_eigenvalue_spectrum(adata: AnnData, cluster_key: str = 'cell_type', order: List[str] | None = None, colors: Dict[str, str] | None = None, figsize: tuple = (15, 15), sharex: bool = True, sharey: bool = True) Figure[source]

Plot Jacobian eigenvalues in complex plane for each cluster.

Parameters:
  • adata (AnnData) – Annotated data object with computed Jacobian eigenvalues in obsm

  • cluster_key (str, optional (default: 'cell_type')) – Key in adata.obs for cluster labels

  • order (list, optional) – Order of clusters to display

  • colors (dict, optional) – Colors for each cluster

  • figsize (tuple, optional (default: (15, 15))) – Figure size

  • sharex (bool, optional (default: True)) – Share x-axis across subplots

  • sharey (bool, optional (default: True)) – Share y-axis across subplots

Returns:

Figure with eigenvalue spectra

Return type:

plt.Figure