fig_floor: framed in-axes legend, shared geometry restored

This commit is contained in:
KiHoLee
2026-08-17 14:03:46 +09:00
parent eb7eb69c8b
commit 25727afb5e
2 changed files with 5 additions and 11 deletions
+5 -11
View File
@@ -81,9 +81,9 @@ def fig_floor():
ax.set_xlabel("Per-block SNR $\\rho$ [dB]") 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_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.set_xlim(0, 40); ax.set_ylim(0.4, 1.05)
# one-row legend fully OUTSIDE the axes, flush to the top-right: # framed in-axes legend like every other result figure; composite
# composite handles (marker = Monte Carlo, line = Theorem 1; the # handles (marker = Monte Carlo, line = Theorem 1; the convention
# convention is stated in the caption), so three entries fit one row # is stated in the caption) keep it to three entries
handles = [ handles = [
Line2D([], [], color="C0", marker="o", mfc="none", ms=3.5, Line2D([], [], color="C0", marker="o", mfc="none", ms=3.5,
ls="-", label="$d=256$"), ls="-", label="$d=256$"),
@@ -91,14 +91,8 @@ def fig_floor():
ls="-", label="$d=768$"), ls="-", label="$d=768$"),
Line2D([], [], color="C1", ls="--", lw=1.2, label=LBL["blind"]), Line2D([], [], color="C1", ls="--", lw=1.2, label=LBL["blind"]),
] ]
ax.legend(handles=handles, loc="lower right", ax.legend(handles=handles, loc="upper right")
bbox_to_anchor=(1.0, 1.0), ncol=3, frameon=False, save(fig, "fig_floor")
columnspacing=1.0, handlelength=1.8, borderaxespad=0.0,
handletextpad=0.5)
fig.subplots_adjust(left=0.205, right=0.965, top=0.90, bottom=0.185)
fig.savefig(FIG / "fig_floor.pdf")
plt.close(fig)
print("[OK] wrote fig_floor.pdf")
# ------------------------------------------------ fig_rate_corrected # ------------------------------------------------ fig_rate_corrected
BIN
View File
Binary file not shown.