figure-style

Applies APS, Nature, and Science publication figure styles via matplotlib style functions.

Updated Sep 2, 2026
One-click install
npx skills add https://github.com/ricfulop/cba-agentic-engineering-bootstrap --skill figure-style-ricfulop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: figure-style
Source: https://github.com/ricfulop/cba-agentic-engineering-bootstrap/tree/main/skills/figure-style
Command: npx skills add https://github.com/ricfulop/cba-agentic-engineering-bootstrap --skill figure-style-ricfulop

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires matplotlib.

What problem does it solve? Researchers preparing publication figures must match strict journal formatting rules for APS, Nature, and Science venues, and manually configuring matplotlib styles for each venue is error-prone and inconsistent. ## Core Features & Use Cases - Venue Skill Routing: Points to the correct venue-specific skill (aps-figure-style, nature-figure-style, science-figure-style) based on the target journal. - Shared Style Library: Imports apply_aps_style, apply_nature_style, and apply_science_style plus OKABE_ITO and MATERIALS palettes from lib/styles.py. - Portable Path Resolution: Locates the plugin lib directory via Path.home(), upward directory walking, or the CBA_STYLES_ROOT environment variable. - Use Case: When drafting a Physical Review Letters figure, load the APS style and generate the plot with the shared palette instead of hand-tuning matplotlib rcParams. ## Quick Start Ask the assistant to create a publication figure for a Nature paper using the shared CBA styles library.

Frequently Asked Questions about figure-style

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

FAQPage Schema
How do I apply APS figure style in matplotlib?

Import apply_aps_style from the shared styles.py library and call it before plotting. Add the plugin lib directory to sys.path using Path.home() or the CBA_STYLES_ROOT environment variable, then generate your figure normally.

What matplotlib style should I use for Nature journal figures?

Use apply_nature_style from lib/styles.py, which configures fonts, sizes, and colors for Nature family journals. The nature-figure-style skill contains the detailed venue rules.

Can I use raw figsize tuples in publication figures?

No. The style guide forbids bare plt.figure() calls and raw figsize tuples because figure dimensions are controlled by the venue style functions. Captions belong in LaTeX, not in the figure.

Why does importing styles.py fail with ModuleNotFoundError?

The lib directory is not on sys.path. Walk upward from your script to find lib/styles.py, or set the CBA_STYLES_ROOT environment variable to the plugin root so paths.py can resolve it.

What color palettes are available for scientific figures?

The library exports OKABE_ITO, a colorblind-safe palette, and MATERIALS for materials science plots. Import them from styles.py alongside the venue style functions.