"""SCI Figure Hub — Publication 4-Year Grant Research Schedule Gantt Chart (CC0-1.0)""" import numpy as np import matplotlib.pyplot as plt PALETTE = ["#1D4E89", "#00A087", "#3C5488", "#E64B35", "#F39B7F"] 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, }) tasks = [ ("WP1: Material Synthesis", 0.0, 1.3, 0, 1.25), ("WP2: Atomic Characterization",0.7, 1.4, 1, 2.05), ("WP3: Operando Spectroscopy", 1.4, 1.5, 2, 2.85), ("WP4: DFT Mechanistic Model", 1.8, 1.6, 2, 3.35), ("WP5: Full-Cell & Durability", 2.5, 1.3, 3, 3.75), ("WP6: Papers, Patents & Close",3.2, 0.8, 4, 3.95), ] fig, ax = plt.subplots(figsize=(6.4, 2.75), dpi=300) y_pos = np.arange(len(tasks))[::-1] for yi, (name, start, dur, ci, ms) in zip(y_pos, tasks): col = PALETTE[ci % len(PALETTE)] ax.barh(yi, dur, left=start, height=0.52, color=col, alpha=0.88, edgecolor="#121C26", linewidth=0.5) ax.scatter([ms], [yi], marker="D", s=34, color="#FFFFFF", edgecolor=col, linewidth=1.4, zorder=4) ax.set_yticks(y_pos) ax.set_yticklabels([t[0] for t in tasks], fontsize=7.8) ax.set_xticks([0, 1, 2, 3, 4]) ax.set_xticklabels(["Y1 Q1", "Y2 Q1", "Y3 Q1", "Y4 Q1", "End"]) ax.set_xlim(0, 4.1) ax.xaxis.grid(True, linestyle="--", linewidth=0.5, alpha=0.55) ax.set_axisbelow(True) ax.set_xlabel("Project Timeline (Years)") fig.tight_layout() fig.savefig("nsfc_research_gantt.pdf", bbox_inches="tight")