diff --git a/code/replot_all.py b/code/replot_all.py index ad624db..92ab530 100644 --- a/code/replot_all.py +++ b/code/replot_all.py @@ -36,7 +36,7 @@ LBL = { "todma": "ToDMA-adapted", "mac": "MAC sum capacity", "coop": "Full-cooperation bound", - "hybrid": "EDMA + refinement stage", + "hybrid": "EDMA + refinement", } @@ -190,20 +190,18 @@ def fig_retrieval(): ax.plot(snr, col(rows, "todma"), "d-.", color="C4", label=LBL["todma"]) ax.plot(snr, col(rows, "oma"), "v:", color="C1", label=LBL["oma"]) + # genie curve overlaps EDMA here; named in the caption, not the legend ax.plot(snr, col(rows, "genie"), "-", color="gray", lw=1.0, - label=LBL["genie"]) - ax.axhline(1.0 / 16, color="gray", ls=":", lw=0.8) - ax.annotate("chance $1/16$", xy=(10.5, 1.0 / 16 + 0.015), fontsize=7, + label="_nolegend_") + ax.axhline(1.0 / 16, xmax=0.48, color="gray", ls=":", lw=0.8) + ax.annotate("chance $1/16$", xy=(1.2, 1.0 / 16 + 0.015), fontsize=7, color="gray") ax.set_xlabel("SNR $\\rho$ [dB]") ax.set_ylabel("Top-1 retrieval accuracy") - ax.set_xlim(snr[0], snr[-1]); ax.set_ylim(0, 1.42) - ax.set_yticks([0.0, 0.2, 0.4, 0.6, 0.8, 1.0]) - hs, ls = ax.get_legend_handles_labels() - order = [1, 4, 0, 2, 3] # long labels share column one - ax.legend([hs[i] for i in order], [ls[i] for i in order], - loc="upper center", ncol=2, columnspacing=0.7, - handlelength=1.3, handletextpad=0.5) + ax.set_xlim(snr[0], snr[-1]); ax.set_ylim(0, 1.0) + ax.legend(loc="lower right", borderaxespad=0.3, + handlelength=1.4, handletextpad=0.5, + labelspacing=0.35) save(fig, "fig_retrieval") diff --git a/fig/fig_bertvit_merged.pdf b/fig/fig_bertvit_merged.pdf index bedc3f0..7e1990d 100644 Binary files a/fig/fig_bertvit_merged.pdf and b/fig/fig_bertvit_merged.pdf differ diff --git a/fig/fig_beta_sweep_corrected.pdf b/fig/fig_beta_sweep_corrected.pdf index 843f3ac..15502fb 100644 Binary files a/fig/fig_beta_sweep_corrected.pdf and b/fig/fig_beta_sweep_corrected.pdf differ diff --git a/fig/fig_floor.pdf b/fig/fig_floor.pdf index cac4d97..7aa0800 100644 Binary files a/fig/fig_floor.pdf and b/fig/fig_floor.pdf differ diff --git a/fig/fig_multiuser_corrected.pdf b/fig/fig_multiuser_corrected.pdf index 6e8b79c..52bd53a 100644 Binary files a/fig/fig_multiuser_corrected.pdf and b/fig/fig_multiuser_corrected.pdf differ diff --git a/fig/fig_rate_corrected.pdf b/fig/fig_rate_corrected.pdf index b5499a7..7717135 100644 Binary files a/fig/fig_rate_corrected.pdf and b/fig/fig_rate_corrected.pdf differ diff --git a/fig/fig_retrieval.pdf b/fig/fig_retrieval.pdf index ca4f5da..325f774 100644 Binary files a/fig/fig_retrieval.pdf and b/fig/fig_retrieval.pdf differ diff --git a/fig/fig_sic.pdf b/fig/fig_sic.pdf index e43c94f..7562cdf 100644 Binary files a/fig/fig_sic.pdf and b/fig/fig_sic.pdf differ