By xwzhang98
Polish matplotlib plotting scripts into paper-ready scientific figures. Preserves scientific semantics while improving colors, legends, typography, layout, and line styles. Use when polishing any scientific plot for publication.
Polish all matplotlib scripts in a directory as a batch with cross-figure semantic consistency. Use when preparing multiple figures for a paper submission — ensures uniform colors, fonts, linestyles, and axis styling across all figures.
Polish a matplotlib plotting script into a paper-ready scientific figure. Preserves scientific semantics while improving colors, legends, typography, layout, and line styles. Use whenever the user wants to polish, clean up, or improve any scientific plotting script for publication.
Draft a publication-ready figure caption from audit results and semantic mapping, with domain awareness and LaTeX math formatting
Read and merge FigPolisher config files, resolving defaults, plot-type overrides, palette selection, and journal-aware layout dimensions
Verify cross-figure consistency across all polished scripts in a batch — checks colors, fonts, linestyles, and axis styling are uniform
Execute original and polished matplotlib scripts, save preview images and a side-by-side before/after comparison for FigPolisher
Compare original and polished scripts to verify semantic preservation and style compliance for FigPolisher
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A Claude Code plugin that polishes matplotlib plotting scripts into paper-ready scientific figures while preserving scientific semantics.
# From the Claude Code CLI
/plugin install /path/to/FigPolisher
Or add to your Claude Code plugins manually by pointing to this directory.
/figpolisher path/to/plot.py
/figpolisher path/to/plot.py paper
FigPolisher will:
<name>.figpolished.py)Works out of the box with built-in defaults. Drop a .figpolisher.yaml in your project root to customize. See references/default-config.yaml for all available options.
| File | Location |
|---|---|
| Polished script | <stem>.figpolished.py |
| Preview image | .figpolisher/previews/<stem>.png |
| Report | .figpolisher/reports/<stem>_report.md |
| Semantic map | .figpolisher/semantics/<stem>_semantics.yaml |
Uses a subagent pipeline for performance:
npx claudepluginhub xwzhang98/figpolisher-marketplace --plugin figpolisherPublication-quality matplotlib/seaborn charts with opinionated aesthetics
Document and LaTeX formatting skills for publication-quality output
Generate publication-quality academic diagrams, statistical plots, and presentation slides using PaperBanana multi-agent framework
Vision-in-the-loop LaTeX visual typesetting optimization (VTO) — agents, skills, and slash commands for Claude Code
Create data visualizations and plots
Edward Tufte's Visual Display of Quantitative Information — three executable skills (route, assess, render) backed by a VDQI-sourced principles reference. Scores graphics against Tufte's nine criteria with named chartjunk species and a 13-entry catalogue of dissected failures, and renders per-genre charts (time-series, small multiples, quartile plot, range-frame scatter) plus a tufte-css HTML wrapper.