"""SCI Figure Hub — Electrocatalytic LSV + Tafel Dual Panel (CC0-1.0)""" import numpy as np import matplotlib.pyplot as plt PALETTE = ["#E64B35", "#00A087", "#3C5488", "#8491B4"] plt.rcParams.update({"font.sans-serif": ["Arial", "DejaVu Sans"], "font.size": 8, "axes.spines.top": False, "axes.spines.right": False, "pdf.fonttype": 42}) eta = np.linspace(0.02, 0.42, 160) specs = [("Pt/C", 0.032, 0.030), ("SA-Ru/NC", 0.048, 0.038), ("CoP/CC", 0.115, 0.062), ("Bare CC", 0.24, 0.115)] fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(6.8, 2.5), dpi=300) # Double column ax1.axhline(-10, ls="--", lw=0.75, color="#64748B") for idx, (lbl, onset, b) in enumerate(specs): j = -10.0 * 10 ** ((eta - onset) / b) mask = j > -120 ax1.plot(-eta[mask], j[mask], color=PALETTE[idx], lw=1.4, label=lbl) logj = np.linspace(0.3, 1.8, 40) t_eta = (onset + b * (logj - 1.0)) * 1000 ax2.plot(logj, t_eta, color=PALETTE[idx], lw=1.4, label=f"{lbl} ({int(b*1000)} mV dec⁻¹)") ax1.set_xlim(-0.42, 0); ax1.set_ylim(-110, 4) ax1.set_xlabel("Potential (V vs. RHE)"); ax1.set_ylabel("Current Density (mA cm⁻²)") ax1.legend(frameon=False, fontsize=7, loc="lower left") ax2.set_xlabel("log |j| (mA cm⁻²)"); ax2.set_ylabel("Overpotential (mV)") ax2.legend(frameon=False, fontsize=6.8, loc="upper left") fig.tight_layout() fig.savefig("lsv_tafel.pdf", bbox_inches="tight")