Skip to content
Snippets Groups Projects
Commit c4cad384 authored by nfontrod's avatar nfontrod
Browse files

src/find_interaction_cluster/community_figures/fig_functions.py: closing...

src/find_interaction_cluster/community_figures/fig_functions.py: closing figures after their creation
parent a3e79436
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,7 @@ from statsmodels.stats.multitest import multipletests ...@@ -15,6 +15,7 @@ from statsmodels.stats.multitest import multipletests
import numpy as np import numpy as np
from ..radomization_test_ppi import get_pvalue from ..radomization_test_ppi import get_pvalue
import seaborn as sns import seaborn as sns
import matplotlib.pyplot as plt
def get_community_table(communities: List[List[str]], def get_community_table(communities: List[List[str]],
...@@ -358,6 +359,7 @@ def make_barplot(df_bar: pd.DataFrame, outfile: Path, ...@@ -358,6 +359,7 @@ def make_barplot(df_bar: pd.DataFrame, outfile: Path,
ha='center', va='center', xytext=(0, 10), fontsize=12, ha='center', va='center', xytext=(0, 10), fontsize=12,
textcoords='offset points') textcoords='offset points')
g.savefig(outfile) g.savefig(outfile)
plt.close()
def make_barplot_perm(df_bar: pd.DataFrame, outfile: Path, def make_barplot_perm(df_bar: pd.DataFrame, outfile: Path,
...@@ -415,6 +417,7 @@ def make_barplot_perm(df_bar: pd.DataFrame, outfile: Path, ...@@ -415,6 +417,7 @@ def make_barplot_perm(df_bar: pd.DataFrame, outfile: Path,
ha='center', va='center', xytext=(0, 10), fontsize=12, ha='center', va='center', xytext=(0, 10), fontsize=12,
textcoords='offset points') textcoords='offset points')
g.savefig(outfile) g.savefig(outfile)
plt.close()
def barplot_creation(df_bar: pd.DataFrame, outfig: Path, def barplot_creation(df_bar: pd.DataFrame, outfig: Path,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment