Fig 5 legend lower right, genie in caption; shorten hybrid label
This commit is contained in:
+9
-11
@@ -36,7 +36,7 @@ LBL = {
|
|||||||
"todma": "ToDMA-adapted",
|
"todma": "ToDMA-adapted",
|
||||||
"mac": "MAC sum capacity",
|
"mac": "MAC sum capacity",
|
||||||
"coop": "Full-cooperation bound",
|
"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",
|
ax.plot(snr, col(rows, "todma"), "d-.", color="C4",
|
||||||
label=LBL["todma"])
|
label=LBL["todma"])
|
||||||
ax.plot(snr, col(rows, "oma"), "v:", color="C1", label=LBL["oma"])
|
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,
|
ax.plot(snr, col(rows, "genie"), "-", color="gray", lw=1.0,
|
||||||
label=LBL["genie"])
|
label="_nolegend_")
|
||||||
ax.axhline(1.0 / 16, color="gray", ls=":", lw=0.8)
|
ax.axhline(1.0 / 16, xmax=0.48, color="gray", ls=":", lw=0.8)
|
||||||
ax.annotate("chance $1/16$", xy=(10.5, 1.0 / 16 + 0.015), fontsize=7,
|
ax.annotate("chance $1/16$", xy=(1.2, 1.0 / 16 + 0.015), fontsize=7,
|
||||||
color="gray")
|
color="gray")
|
||||||
ax.set_xlabel("SNR $\\rho$ [dB]")
|
ax.set_xlabel("SNR $\\rho$ [dB]")
|
||||||
ax.set_ylabel("Top-1 retrieval accuracy")
|
ax.set_ylabel("Top-1 retrieval accuracy")
|
||||||
ax.set_xlim(snr[0], snr[-1]); ax.set_ylim(0, 1.42)
|
ax.set_xlim(snr[0], snr[-1]); ax.set_ylim(0, 1.0)
|
||||||
ax.set_yticks([0.0, 0.2, 0.4, 0.6, 0.8, 1.0])
|
ax.legend(loc="lower right", borderaxespad=0.3,
|
||||||
hs, ls = ax.get_legend_handles_labels()
|
handlelength=1.4, handletextpad=0.5,
|
||||||
order = [1, 4, 0, 2, 3] # long labels share column one
|
labelspacing=0.35)
|
||||||
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)
|
|
||||||
save(fig, "fig_retrieval")
|
save(fig, "fig_retrieval")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user