figures-python

Generates publication-quality matplotlib figures with journal color schemes and dual PNG/SVG output.

Updated Jul 5, 2026
One-click install
npx skills add https://github.com/huaibovip/research-marketplace --skill figures-python-huaibovip
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: figures-python
Source: https://github.com/huaibovip/research-marketplace/tree/main/plugins/research-writing-assistant/skills/figures-python
Command: npx skills add https://github.com/huaibovip/research-marketplace --skill figures-python-huaibovip

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires matplotlib, seaborn, numpy, pandas.

What problem does it solve? Creating figures that meet academic journal standards requires consistent color palettes, high DPI settings, correct fonts (including Chinese characters), and proper file management—details that are easy to get wrong when writing plotting code from scratch. ## Core Features & Use Cases - Journal-Grade Styling: Applies Nature/Science, Cell, and colorblind-safe color palettes with 450 DPI output and clean axis styling. - Dual Format Export: Every figure is saved as both PNG (for web/slides) and SVG (vector, for journal submission). - Data Provenance Tracking: Enforces a data manifest (figures/data-manifest.md) that records whether data is real or mock, preventing synthetic data from being presented as experimental results. - Use Case: While writing a research paper, ask for a line chart comparing two models; the Skill generates a styled matplotlib script, saves fig1_model_comparison.png and .svg under figures/chapter2/, and logs the data source in the manifest. ## Quick Start Ask the assistant to create a publication-quality line chart of your experiment results using the figures-python skill with Nature-style colors and 450 DPI output.

Frequently Asked Questions about figures-python

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

FAQPage Schema
How do I create publication-quality matplotlib figures for journal papers?

Use curated color palettes such as Nature or Cell schemes instead of matplotlib defaults, set savefig DPI to 450, hide top and right spines, and export both PNG and SVG. This Skill provides a ready-made template enforcing all of these conventions.

What DPI should I use for figures in Nature or Science submissions?

Top journals typically require 300-600 DPI, and this Skill defaults to 450 DPI for print-quality output. For screen-only use such as slides or web pages, 150 DPI is sufficient.

Why do Chinese characters show as boxes in matplotlib plots?

Matplotlib's default fonts lack CJK glyphs. Load a Chinese font file explicitly with matplotlib.font_manager.FontProperties, for example STHeiti or PingFang on macOS, and pass it via the fontproperties argument to labels.

Can I use mock or synthetic data in paper figures?

Mock data is allowed only for planning-stage figures. Files must be prefixed with mock_ or synthetic_, the figure must be marked as pending real experimental replacement, and the data manifest must record its status.

What Python libraries are required to run the figure scripts?

The scripts require matplotlib, seaborn, numpy, and pandas, installed in a conda environment named research. Activate it with conda activate research before running any figure script.