"""SCI Figure Hub — Publication Semi-Log TRPL Decay Curve with Bi-Exponential Fit (CC0-1.0)""" import numpy as np import matplotlib.pyplot as plt PALETTE = ["#3C5488", "#00A087", "#E64B35"] plt.rcParams.update({ "font.family": "sans-serif", "font.sans-serif": ["Arial", "Helvetica", "DejaVu Sans"], "font.size": 8, "axes.linewidth": 0.8, "axes.spines.top": False, "axes.spines.right": False, "pdf.fonttype": 42, }) rng = np.random.default_rng(19) t = np.linspace(0, 45, 220) fig, ax = plt.subplots(figsize=(3.5, 2.6), dpi=300) specs = [("Control (tau = 2.4 ns)", 2.4), ("Passivated (tau = 6.8 ns)", 6.8), ("Interface-Mod (tau = 14.2 ns)", 14.2)] for idx, (label, tau) in enumerate(specs): col = PALETTE[idx % len(PALETTE)] fit = 0.65 * np.exp(-t / (tau * 0.55)) + 0.35 * np.exp(-t / (tau * 1.45)) noisy = np.clip(fit * rng.lognormal(0, 0.08, size=t.size), 1e-3, 1.2) ax.scatter(t[::3], noisy[::3], s=8, color=col, alpha=0.45, edgecolors="none") ax.plot(t, fit, color=col, lw=1.6, label=label) ax.set_yscale("log") ax.set_xlim(0, 45) ax.set_ylim(3e-3, 1.4) ax.set_xlabel("Time (ns)") ax.set_ylabel("Normalized PL Intensity") ax.legend(frameon=False, fontsize=6.8, loc="upper right") fig.tight_layout() fig.savefig("trpl_decay_fit.pdf", bbox_inches="tight")