Loading...
Loading...
Generate publication-ready scientific figures in Python/matplotlib with a consistent figures4papers house style. Use when creating or refining academic bar/trend/heatmap/scatter/multi-panel figures, enforcing visual consistency, or exporting paper-ready PNG/PDF/SVG outputs.
npx skill4agent add l-yifan/skills scientific-figure-proscripts/scientific_figure_pro.pyapply_publication_style(...)make_*finalize_figure(...)import importlib.util
from pathlib import Path
import matplotlib.pyplot as plt
module_path = Path("skills/scientific-figure-pro/scripts/scientific_figure_pro.py")
spec = importlib.util.spec_from_file_location("scientific_figure_pro", module_path)
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)FigureStyle(...)apply_publication_style(style=None)create_subplots(nrows, ncols, figsize, **kwargs)make_grouped_bar(...)make_trend(...)make_heatmap(...)make_scatter(...)make_sphere_illustration(...)finalize_figure(fig, out_path, formats=None, dpi=300, pad=0.05)dpi=300dpi=600FigureStyle(font_size=24, axes_linewidth=3)FigureStyle(font_size=15 or 16, axes_linewidth=2)finalize_figure(...)plt.savefig(...)matplotlibnumpyreferences/design_theory.md