From b4863f99cc5a633e3fefcc61b158cca8b9ca5efa Mon Sep 17 00:00:00 2001 From: zethson Date: Sat, 6 Apr 2024 23:25:30 +0200 Subject: [PATCH] Revert mixscape plots Signed-off-by: zethson --- pertpy/tools/_mixscape.py | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/pertpy/tools/_mixscape.py b/pertpy/tools/_mixscape.py index d6393c51..85b201da 100644 --- a/pertpy/tools/_mixscape.py +++ b/pertpy/tools/_mixscape.py @@ -613,8 +613,6 @@ def plot_heatmap( # pragma: no cover subsample_number: int | None = 900, vmin: float | None = -2, vmax: float | None = 2, - fontsize: int | None = 8, - ax: Axes | None = None, show: bool | None = None, save: bool | str | None = None, **kwds, @@ -667,8 +665,6 @@ def plot_heatmap( # pragma: no cover vmax=vmax, n_genes=20, groups=["NT"], - fontsize=fontsize, - ax=ax, show=show, save=save, **kwds, @@ -775,17 +771,6 @@ def plot_perturbscore( # pragma: no cover plt.legend(title="gene_target", title_fontsize=14, fontsize=12) sns.despine() - ax = plt.gca() - - if save: - plt.savefig(save, bbox_inches="tight") - return None - if show: - plt.show() - return None - elif not show or show is None: - return ax - # If before_mixscape is False, split densities based on mixscape classifications else: if palette is None: @@ -842,17 +827,6 @@ def plot_perturbscore( # pragma: no cover plt.legend(title="mixscape class", title_fontsize=14, fontsize=12) sns.despine() - ax = plt.gca() - - if save: - plt.savefig(save, bbox_inches="tight") - return None - if show: - plt.show() - return None - elif not show or show is None: - return ax - def plot_violin( # pragma: no cover self, adata: AnnData,