"""SCI Figure Hub — Multi-Model ROC Curve Comparison (CC0-1.0)""" import numpy as np import matplotlib.pyplot as plt PALETTE = ["#E64B35", "#4DBBD5", "#00A087", "#3C5488"] plt.rcParams.update({"font.sans-serif": ["Arial", "DejaVu Sans"], "font.size": 8, "axes.spines.top": False, "axes.spines.right": False, "pdf.fonttype": 42}) fpr = np.linspace(0, 1, 200) models = [ ("Ours (AUC = 0.94)", 1 - (1 - fpr) ** 12), ("ResNet-50 (AUC = 0.89)", 1 - (1 - fpr) ** 6.8), ("XGBoost (AUC = 0.84)", 1 - (1 - fpr) ** 4.4), ("Logistic (AUC = 0.77)", 1 - (1 - fpr) ** 2.6), ] fig, ax = plt.subplots(figsize=(3.3, 3.1), dpi=300) ax.plot([0, 1], [0, 1], "--", color="#94A3B8", lw=0.9, label="Chance (0.50)") for idx, (lbl, tpr) in enumerate(models): ax.plot(fpr, tpr, color=PALETTE[idx], lw=1.65 if idx == 0 else 1.25, label=lbl) ax.set_aspect("equal") ax.set_xlim(0, 1) ax.set_ylim(0, 1.02) ax.set_xlabel("False Positive Rate (1 - Specificity)") ax.set_ylabel("True Positive Rate (Sensitivity)") ax.legend(frameon=False, loc="lower right", fontsize=7) fig.tight_layout() fig.savefig("roc_comparison.pdf", bbox_inches="tight")