generate-figures

Generate publication-quality figures and LaTeX tables from analysis_results.json.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/DamarisDeng/paper-writing-system --skill generate-figures
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-figures
Source: https://github.com/DamarisDeng/paper-writing-system/tree/main/workflow/skills/generate-figures
Command: npx skills add https://github.com/DamarisDeng/paper-writing-system --skill generate-figures

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, matplotlib, scipy, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the creation of publication-quality figures and LaTeX tables from analysis results, eliminating manual plotting and formatting drudgery.

Core Features & Use Cases

  • Automated figure generation: produces publication-ready plots and tables from standard analysis outputs.
  • JAMA styling & accessibility: uses colorblind-safe palettes, golden-ratio dimensions, and consistent formatting for manuscripts.
  • Use Case: data analysts and researchers who need to generate manuscript-ready visuals from analysis_results.json and scoring data in a reproducible workflow.

Quick Start

Provide your input folders (3_analysis and 2_scoring) and an output directory, then run the skill to generate figures and LaTeX tables in 4_figures.

Frequently Asked Questions about generate-figures

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

FAQPage Schema
How do I generate publication-ready figures and LaTeX tables from analysis results?

To generate publication-ready figures and LaTeX tables, provide input folders containing analysis results and scoring data, specify an output directory, and run the skill to automatically produce formatted plots and tables.

Can I create JAMA-formatted plots with colorblind-safe palettes using matplotlib?

Yes, you can create JAMA-formatted plots with colorblind-safe palettes using matplotlib. The skill enforces golden-ratio dimensions and consistent JAMA styling on all generated figures for manuscript readiness.

Do I need numpy and scipy installed to automate figure generation from JSON?

Yes, you need numpy, matplotlib, and scipy installed in your Python environment to automate figure generation from JSON, along with a Jama-style styling module for applying the required formatting.

What is the best way to automate manuscript-ready visuals in a reproducible workflow?

The best way to automate manuscript-ready visuals in a reproducible workflow is reading standardized analysis_results.json inputs and writing outputs to a dedicated figures directory, generating a manifest of all created artifacts.

Why does my figure generation fail when reading from 3_analysis and 2_scoring directories?

Figure generation fails when the required input directories do not contain the expected standardized analysis_results.json and scoring data, or when the Python environment lacks the required numpy, matplotlib, and scipy dependencies.

What file format are the generated tables output in for publication?

Generated tables are output in LaTeX format for publication. The skill reads JSON analysis results and writes these LaTeX tables alongside publication-quality figures into a designated output directory.