From 8d5589ea9353e1939b8ae11191279388f96e6fee Mon Sep 17 00:00:00 2001 From: Cam Allen Date: Wed, 7 Aug 2024 16:27:34 -0700 Subject: [PATCH] Update parity ld memory sweep plot --- scripts/knife_edge/test_parity_ld_with_memory.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/knife_edge/test_parity_ld_with_memory.py b/scripts/knife_edge/test_parity_ld_with_memory.py index 1cc651da..c0431518 100644 --- a/scripts/knife_edge/test_parity_ld_with_memory.py +++ b/scripts/knife_edge/test_parity_ld_with_memory.py @@ -48,9 +48,12 @@ def plot_loghist(x, bins): plt.hist(x, bins=logbins) plt.xscale('log') +#%% +plt.subplots(figsize=(7,2.5)) plot_loghist(lds, 100) plt.title('Parity Check with Random Memory') plt.xlabel(r'$\lambda$-discrepancy ($\Lambda$)') plt.ylabel('Number of memory functions') +plt.tight_layout() plt.savefig('parity-check-memory.png') plt.show()