Uniform axes-box geometry across result figures; panel tags below panels

This commit is contained in:
Ki-Ho Lee
2026-08-25 19:00:34 +09:00
parent 6a65d931f7
commit 36bd9f7609
6 changed files with 9 additions and 4 deletions
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
+9 -4
View File
@@ -50,11 +50,15 @@ C = {"ofdma": "#546E7A", "blind": "#8D6E63", "noma": "#E65100",
"aux": "#6A1B9A"}
# ---------------------------------------------------------------- fig_fair --
# axes box kept at 2.59 x 2.12 in; panel tags "(a)"/"(b)" BELOW the panels
d = json.load(open(DATA / "e1_fair_baselines.json"))
snr = d["snr"]
f = plt.figure(figsize=(7.1, 2.75))
axs = [f.add_axes([0.115, 0.165, 0.365, 0.77]),
f.add_axes([0.615, 0.165, 0.365, 0.77])]
FH = 3.10 # taller canvas for below-axis tags
AXH = 2.12 / FH
AXB = 0.86 / FH
f = plt.figure(figsize=(7.1, FH))
axs = [f.add_axes([0.115, AXB, 0.365, AXH]),
f.add_axes([0.615, AXB, 0.365, AXH])]
for ax, sc, ttl in zip(axs, ["HIGH", "MIX"], ["(a) HIGH", "(b) MIX"]):
v = d["scenarios"][sc]
ax.semilogy(snr, v["ofdma"]["ser"], "s--", color=C["ofdma"], label="OFDMA")
@@ -66,8 +70,9 @@ for ax, sc, ttl in zip(axs, ["HIGH", "MIX"], ["(a) HIGH", "(b) MIX"]):
label="LMMSE-genie")
ax.set_xlabel("SNR (dB)")
ax.set_ylabel("SER")
ax.set_title(ttl)
ax.set_xlim(0, 20)
ax.text(0.5, -0.31, ttl, transform=ax.transAxes,
ha="center", va="top", fontsize=10)
axs[1].legend(loc="lower left", framealpha=0.9, fontsize=7)
save(f, "fig_fair.pdf", axs)