"""SCI Figure Hub — Nature 183mm Double-Column Multi-Panel (a-d) Skeleton (CC0-1.0)""" import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import ListedColormap PALETTE = ["#E64B35", "#4DBBD5", "#00A087", "#3C5488"] plt.rcParams.update({ "font.sans-serif": ["Arial", "Helvetica", "DejaVu Sans"], "font.size": 7, "axes.linewidth": 0.7, "axes.spines.top": False, "axes.spines.right": False, "pdf.fonttype": 42, }) fig, axes = plt.subplots(2, 2, figsize=(7.2, 4.6), dpi=300) # 183 mm exact Nature double-column x = np.linspace(0, 10, 40) axes[0, 0].plot(x, np.sin(x) + 1.5, color=PALETTE[0], lw=1.3); axes[0, 0].set_ylabel("Signal (a.u.)") axes[0, 1].bar(["A", "B", "C", "D"], [42, 68, 85, 73], color=PALETTE, edgecolor="#1E293B", lw=0.5); axes[0, 1].set_ylabel("Yield (%)") rng = np.random.default_rng(1) axes[1, 0].scatter(rng.normal(0, 1, 50), rng.normal(0, 1, 50), s=16, color=PALETTE[2], alpha=0.8) axes[1, 1].pcolormesh(np.corrcoef(rng.normal(size=(6, 20))), cmap=ListedColormap(PALETTE[:4]), vmin=-1, vmax=1) axes[1, 1].set_aspect("equal") axes[1, 1].invert_yaxis() for ax, tag in zip(axes.flat, ["a", "b", "c", "d"]): ax.text(-0.15, 1.08, tag, transform=ax.transAxes, fontsize=10, fontweight="bold", va="top") fig.tight_layout(w_pad=1.6, h_pad=1.4) fig.savefig("nature_multipanel_183mm.pdf", bbox_inches="tight")