"""SCI Figure Hub — DFT Catalytic Gibbs Free Energy Step Profile (CC0-1.0)""" import numpy as np import matplotlib.pyplot as plt PALETTE = ["#E64B35", "#3C5488"] plt.rcParams.update({"font.sans-serif": ["Arial", "DejaVu Sans"], "font.size": 8, "axes.spines.top": False, "axes.spines.right": False, "pdf.fonttype": 42}) states = ["* + H₂O", "*OH", "*O", "*OOH", "* + O₂"] paths = [("SA-Ni/NC", [0.0, 0.72, 2.15, 3.68, 4.92]), ("Pristine", [0.0, 1.18, 2.95, 4.10, 4.92])] fig, ax = plt.subplots(figsize=(3.8, 2.55), dpi=300) w = 0.28 for idx, (lbl, gs) in enumerate(paths): col = PALETTE[idx] for s_i, g in enumerate(gs): ax.hlines(g, s_i - w, s_i + w, color=col, lw=2.4, label=lbl if s_i == 0 else None) if s_i < len(gs) - 1: ax.plot([s_i + w, s_i + 1 - w], [g, gs[s_i + 1]], "--", color=col, lw=0.95) ax.annotate("", xy=(2.0, 2.15), xytext=(2.0, 0.72), arrowprops={"arrowstyle": "<->", "color": PALETTE[0], "lw": 1.0}) ax.text(2.08, 1.44, "RDS: 1.43 eV", fontsize=7, color=PALETTE[0], fontweight="bold") ax.set_xticks(range(len(states)), states) ax.set_ylabel("Free Energy ΔG (eV)") ax.legend(frameon=False, loc="upper left") fig.tight_layout() fig.savefig("gibbs_energy_profile.pdf", bbox_inches="tight")