diff --git a/Figures/Fig2/fig2.pdf b/Figures/Fig2/fig2.pdf index cf435e7..346212a 100644 Binary files a/Figures/Fig2/fig2.pdf and b/Figures/Fig2/fig2.pdf differ diff --git a/Figures/Fig2/fig2.png b/Figures/Fig2/fig2.png index b690385..0f83415 100644 Binary files a/Figures/Fig2/fig2.png and b/Figures/Fig2/fig2.png differ diff --git a/Figures/Fig4/fig4.pdf b/Figures/Fig4/fig4.pdf index 8789f15..3058e6a 100644 Binary files a/Figures/Fig4/fig4.pdf and b/Figures/Fig4/fig4.pdf differ diff --git a/Figures/Fig4/fig4.png b/Figures/Fig4/fig4.png index 3bc10f0..174f197 100644 Binary files a/Figures/Fig4/fig4.png and b/Figures/Fig4/fig4.png differ diff --git a/Figures/Fig5/fig5.pdf b/Figures/Fig5/fig5.pdf index 7de92e5..3698efb 100644 Binary files a/Figures/Fig5/fig5.pdf and b/Figures/Fig5/fig5.pdf differ diff --git a/Figures/Fig5/fig5.png b/Figures/Fig5/fig5.png index 41855f4..2bf13b4 100644 Binary files a/Figures/Fig5/fig5.png and b/Figures/Fig5/fig5.png differ diff --git a/plot_fig1.py b/plot_fig1.py index 4e831b5..7d9e856 100644 --- a/plot_fig1.py +++ b/plot_fig1.py @@ -221,12 +221,12 @@ ax3.semilogx(tmax, np.median(performance[0], axis=1), color="C0", label="Simple") ax3.semilogx(tmax, np.median(performance[1], axis=1), color="C1", label="Complex") -min_idx = np.where((np.median(performance[0], axis=1) - np.median(performance[1], axis=1)) < 0)[ - 0 -].min() -max_idx = np.where((np.median(performance[0], axis=1) - np.median(performance[1], axis=1)) < 0)[ - 0 -].max() +min_idx = np.where( + (np.median(performance[0], axis=1) - np.median(performance[1], axis=1)) < 0 +)[0].min() +max_idx = np.where( + (np.median(performance[0], axis=1) - np.median(performance[1], axis=1)) < 0 +)[0].max() print(tmax[min_idx]) print(tmax[max_idx]) diff --git a/plot_fig2.py b/plot_fig2.py index 31140c0..5b695d7 100644 --- a/plot_fig2.py +++ b/plot_fig2.py @@ -30,7 +30,7 @@ r"Threshold, $\tau=2$", ] keys = ["p", "alpha", "size"] -titles = ["Erdös-Rényi", "Power-law CM", "Clustered"] +titles = ["Erdős-Rényi", "Power-law CM", "Clustered"] labels = [r"Density, $p$", r"Exponent, $\alpha$", r"Clique size, $s$"] xticks = [ diff --git a/plot_fig3.py b/plot_fig3.py index 3a13170..3566026 100644 --- a/plot_fig3.py +++ b/plot_fig3.py @@ -9,7 +9,6 @@ import fig_settings as fs from lcs import * - fs.set_fonts() with open(f"Data/zkc_tmax_comparison.json") as file: diff --git a/plot_fig4.py b/plot_fig4.py index 34c221e..ab80344 100644 --- a/plot_fig4.py +++ b/plot_fig4.py @@ -30,7 +30,7 @@ r"Threshold, $\tau=2$", ] keys = ["p", "alpha", "size"] -titles = ["Erdös-Rényi", "Power-law CM", "Clustered"] +titles = ["Erdős-Rényi", "Power-law CM", "Clustered"] labels = [r"Density, $p$", r"Exponent, $\alpha$", r"Clique size, $s$"] xticks = [ [0, 0.5, 1], diff --git a/plot_fig5.py b/plot_fig5.py index d6c3eb7..743309b 100644 --- a/plot_fig5.py +++ b/plot_fig5.py @@ -32,8 +32,14 @@ r"Threshold, $\tau=3$", ] keys = ["p", "alpha", "size", "epsilon", "p"] -titles = ["Erdös-Rényi", "Power-law CM", "Clustered", "SBM", "Small-World"] -labels = [r"Density, $p$", r"Exponent, $\alpha$", r"Clique size, $s$", r"Imbalance, $\epsilon$", r"Rewiring prob., $p$"] +titles = ["Erdős-Rényi", "Power-law CM", "Clustered", "SBM", "Small-World"] +labels = [ + r"Density, $p$", + r"Exponent, $\alpha$", + r"Clique size, $s$", + r"Imbalance, $\epsilon$", + r"Rewiring prob., $p$", +] xticks = [ [0, 0.5, 1], [-4, -3.5, -3, -2.5, -2, -1.5], diff --git a/requirements.txt b/requirements.txt index 4a23411..0ed639c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,3 +9,4 @@ arviz seaborn joblib scikit-learn +cmasher \ No newline at end of file