"""SCI Figure Hub — EIS Nyquist Plot with High-Frequency Inset (CC0-1.0)""" import numpy as np import matplotlib.pyplot as plt PALETTE = ["#E64B35", "#00A087", "#3C5488"] plt.rcParams.update({"font.sans-serif": ["Arial", "DejaVu Sans"], "font.size": 8, "pdf.fonttype": 42}) freqs = np.logspace(5, -1, 120) w = 2 * np.pi * freqs def randles(rs, rct, cdl, sigma): zw = sigma * (1 - 1j) / np.sqrt(w) z = rs + 1 / (1j * w * cdl + 1 / (rct + zw)) return z.real, -z.imag fig, ax = plt.subplots(figsize=(3.5, 3.1), dpi=300) ax_in = ax.inset_axes([0.48, 0.48, 0.47, 0.45]) for idx, (lbl, params) in enumerate([("Catalyst-A", (2.1, 14, 1.5e-5, 16)), ("Catalyst-B", (2.8, 32, 1.2e-5, 22)), ("Pristine", (3.6, 58, 1e-5, 28))]): zr, zi = randles(*params) ax.plot(zr, zi, "-o", color=PALETTE[idx], lw=1.2, ms=2.6, label=lbl) ax_in.plot(zr, zi, "-o", color=PALETTE[idx], lw=1.0, ms=2.2) ax.set_aspect("equal", adjustable="box") ax.set_xlim(0, 120) ax.set_ylim(0, 110) ax_in.set_xlim(0, 26) ax_in.set_ylim(0, 22) ax_in.tick_params(labelsize=6) ax.set_xlabel("Z' (Ω)") ax.set_ylabel("-Z'' (Ω)") ax.legend(frameon=False, loc="upper left", fontsize=7) fig.tight_layout() fig.savefig("eis_nyquist.pdf", bbox_inches="tight")