nature-figure

Generates submission-grade multi-panel scientific figures for Nature-tier journals using Python or R.

Updated Aug 12, 2026
One-click install
npx skills add https://github.com/littlt-momo-c-yfc/skills --skill nature-figure-littlt-momo-c-yfc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nature-figure
Source: https://github.com/littlt-momo-c-yfc/skills/tree/main/skills/nature-figure
Command: npx skills add https://github.com/littlt-momo-c-yfc/skills --skill nature-figure-littlt-momo-c-yfc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires matplotlib, seaborn, numpy, pandas, statsmodels, ggplot2, patchwork, ComplexHeatmap, ggrepel, svglite, ragg, and includes references (resource) and assets (resource) components.

What problem does it solve? Creating publication-quality scientific figures that meet Nature-family journal standards requires deep knowledge of layout, typography, color semantics, and export rules, which most researchers must learn through trial and error. ## Core Features & Use Cases - Figure contract workflow: Defines the core conclusion, evidence hierarchy, panel map, and export requirements before any plotting code is written. - Dual backend support: Provides dedicated tracks for Python (matplotlib, seaborn, subplot_mosaic) and R (ggplot2, patchwork, ComplexHeatmap), with a blocking gate that enforces exclusive use of the selected backend. - Editable vector export: Enforces SVG-first output with selectable text via mandatory rcParams rules, plus PNG/PDF/TIFF secondary exports. - Use Case: A researcher needs a multi-panel results figure combining a schematic, heatmap, and forest plot for a Nature Machine Intelligence submission; the skill guides backend selection, applies restrained semantic palettes, and delivers journal-ready SVG output. ## Quick Start Ask the assistant to create a Nature-style multi-panel figure from your data and specify whether you want to use Python or R.

Frequently Asked Questions about nature-figure

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create Nature-style figures with matplotlib?

Set three mandatory rcParams first: font.family to sans-serif, font.sans-serif to Arial/DejaVu Sans/Liberation Sans, and svg.fonttype to none for editable text. Then save primarily as SVG with bbox_inches tight, disable top and right spines, and use frameless legends.

Should I use Python or R for scientific publication figures?

Choose R when working with ggplot2 templates, ComplexHeatmap omics annotations, Seurat objects, or survival analysis outputs. Choose Python when you need low-level layout control, image plates, subplot_mosaic arrangements, or a NumPy/Pandas-based data pipeline.

Why is my matplotlib SVG text not editable in Illustrator?

Matplotlib defaults svg.fonttype to path, which converts every glyph into bezier curves that cannot be selected or edited. Set plt.rcParams['svg.fonttype'] to 'none' so text remains as SVG text elements with render-time font substitution.

Can I mix Python and R in the same figure workflow?

The selected backend must be used exclusively for all plotting, previews, exports, and visual QA. The non-selected language may only perform non-visual data preparation such as CSV conversion, never rendering or saving image files.

What happens if my chosen plotting backend is not installed?

The workflow stops and reports the missing runtime or package blocker rather than substituting the other language for a fallback preview. You receive the selected-backend script plus install and run instructions.

When should I not use this figure workflow?

It is not suited for dashboards, interactive visualizations, or Illustrator/Figma-first infographic design. It targets static, manuscript-facing figures where scientific logic and journal export constraints drive the design.