"""SCI Figure Hub — Cyclic Voltammetry (CV) Multi-Scan Rate Plot (CC0-1.0)""" import numpy as np import matplotlib.pyplot as plt PALETTE = ["#8491B4", "#4DBBD5", "#00A087", "#3C5488", "#E64B35"] plt.rcParams.update({"font.sans-serif": ["Arial", "DejaVu Sans"], "font.size": 8, "pdf.fonttype": 42}) theta = np.linspace(0, 2 * np.pi, 400) v = 0.5 + 0.45 * np.cos(theta) fig, ax = plt.subplots(figsize=(3.5, 2.55), dpi=300) ax.axhline(0, ls=":", lw=0.7, color="#94A3B8") for idx, rate in enumerate([5, 10, 20, 50, 100]): scale = (rate / 100) ** 0.72 ox = 0.9 * np.exp(-((v - 0.62) / 0.11) ** 2) * (np.sin(theta) > 0) red = -0.82 * np.exp(-((v - 0.42) / 0.12) ** 2) * (np.sin(theta) < 0) j = scale * (1.25 * np.sin(theta) + 0.35 * np.sin(2 * theta) + ox + red) ax.plot(v, j, color=PALETTE[idx], lw=1.3, label=f"{rate} mV s⁻¹") ax.set_xlabel("Potential (V vs. RHE)") ax.set_ylabel("Current Density (mA cm⁻²)") ax.legend(frameon=False, fontsize=6.8, loc="upper left") fig.tight_layout() fig.savefig("cv_curves.pdf", bbox_inches="tight")