fig_floor: legend in dedicated headroom (no curve overlap)

This commit is contained in:
KiHoLee
2026-08-17 13:05:36 +09:00
parent 358faecc0c
commit 5b51f8b41a
2 changed files with 5 additions and 2 deletions
+5 -2
View File
@@ -81,8 +81,11 @@ def fig_floor():
fontsize=7, color="gray")
ax.set_xlabel("Per-block SNR $\\rho$ [dB]")
ax.set_ylabel(r"Per-user MSE $\mathbb{E}\|\hat{\mathbf{e}}_u-\mathbf{e}_u\|_2^2$")
ax.set_xlim(0, 40); ax.set_ylim(0.4, 1.05)
ax.legend(loc="lower left", bbox_to_anchor=(0.02, 0.18))
ax.set_xlim(0, 40); ax.set_ylim(0.4, 1.32)
ax.set_yticks([0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0])
# legend in dedicated headroom above the curves (max 1.0), no overlap
ax.legend(loc="upper center", ncol=2, columnspacing=0.9,
handlelength=1.6, borderaxespad=0.3)
save(fig, "fig_floor")