Paper-Plot-Skills: Let AI Draw Your Paper Figures — From Matplotlib Tuning Hell to One-Sentence Plotting
> GitHub: https://github.com/Trae1ounG/paper-plot-skills > Author: Trae1ounG (CUHK-Shenzhen) > Positioning: An AI skill toolbox for reproducing and generating publication figures
The Pain Point
Every researcher knows this: results are great, but rendering a comparison bar chart in matplotlib takes hours of tweaking — default colors, mismatched fonts, wrong bar spacing, missing error bars, low-dpi exports with white margins. Paper figures aren't just "data plotted" — they're visual storytelling, where fonts, palettes, spacing, annotations, and layout shape a reviewer's first impression.
Paper-Plot-Skills packages "top-venue figure aesthetics" into AI skills so you can generate them in one sentence.
Core Design: Style Parameters Extracted from 9 Real Paper Figures
The author dissected 9 figures from real papers into systematic parameter specs (.md documents) paired with matplotlib templates. Examples:
- MemEvolve paired bars: serif (Times New Roman style) font, paired baseline-vs-method bars, gain arrows with percentages, independent y-axis scales, low-saturation contrast palette
- DAPO training curve: sans-serif font, horizontal dashed threshold references, vertical breakpoint lines, four spines with outward ticks, detached legend
- Fonts: serif (traditional, CV/ML classics), sans-serif (modern venues), or LaTeX Computer Modern for consistency with the paper body — each style matches its source paper.
- Spines: four-border for precision reading, L-shaped for trend emphasis, borderless for minimalist designs — a deliberate information-density choice.
- Palettes: extracted from real papers, already filtered for grayscale-print distinction, color-blind safety (red-green is avoided), series separability, and restraint.
- dpi=300: meets most journal print requirements out of the box (some line-art requires 600 dpi; web display needs only 72–150).
- Trae1ounG (2026). Paper-Plot-Skills. https://github.com/Trae1ounG/paper-plot-skills
- Preset style source papers: MemEvolve, SPICE, Self-Distillation, DAPO, SiameseNorm, MemGen, Meta-Harness, DoRA
Two Usage Modes
1. plot-from-data — "Plot my data in style X": the AI reads the style spec, ingests your data (CSV/JSON/plain text), and fills the template, producing a 300-dpi publication-ready figure.
2. plot-from-image — "Reproduce this figure": upload a screenshot; the AI analyzes proportions, fonts, colors, and layout, infers matplotlib parameters, and outputs a reproducible Python script. A real case (classwise_iou, issue #1) reproduced a paper table nearly identically.
The 9 Preset Styles
| Style | Type | Source paper | Key features |
|-------|------|--------------|--------------|
| bar_paired_delta | Bar | MemEvolve | paired bars + gain arrows, serif font |
| bar_grouped_hatch | Bar | SPICE | grouped bars + hatch fill on main method, value labels |
| line_confidence_band | Line | Self-Distillation | EMA smoothing + confidence shading, LaTeX font |
| line_training_curve | Line | DAPO | vertical breakpoints + horizontal references, sans-serif |
| line_loss_with_inset | Line | SiameseNorm | L-shaped spines + axis-end arrows + right zoom inset |
| scatter_tsne_cluster | Scatter | MemGen | t-SNE clusters + rounded annotation boxes |
| scatter_broken_axis | Scatter | Meta-Harness | broken X-axis dual panel, multiple markers |
| radar_dual_series | Radar | DoRA | octagonal dashed grid, two-method comparison |
These cover ~80% of ML/AI paper figure scenarios: comparison/ablation bars, training curves and scaling laws, t-SNE/UMAP visualizations, and multi-dimensional method comparisons.
Why the Aesthetic Parameters Matter
How This Differs from Plain Matplotlib Templates
Templates like seaborn's paper context only fix fonts, line widths, and color cycles. Features like paired-delta arrows, L-shaped spines with zoom insets, or broken axes require many manual parameters. Paper-Plot-Skills' value is packaging advanced matplotlib techniques and aesthetic judgment into one-sentence skills — while still emitting standard, non-black-box matplotlib code. The AI acts as an assistant (parameter injection + template rendering, or visual analysis + parameter inference), not a replacement: you still choose styles and judge outputs.
Limitations
1. Coverage: 9 styles cover ~80% of cases; manifold plots, network graphs, heatmaps are not yet included. 2. Domain bias: styles come from ML/AI papers; biomedical, physics, and chemistry conventions differ. 3. Static only: no interactive (HTML/Plotly) output. 4. Matplotlib only: no ggplot2, Plotly, or TikZ support.
The Real Takeaway: The Methodology of Aesthetic Deconstruction
The most valuable part is not the 9 scripts but the method: systematically extracting font, spine, palette, annotation, and layout parameters from any paper figure. This methodology transfers to any visualization tool and trains a professional eye for your own figures.
Recommended Use Cases
| Scenario | Mode + Style |
|----------|--------------|
| Comparison plot from experiment data | plot-from-data + bar_paired_delta |
| Reproduce a figure you liked | plot-from-image |
| t-SNE visualization | plot-from-data + scatter_tsne_cluster |
| Ablation with 5 methods | plot-from-data + bar_grouped_hatch |
| Training/convergence curves | plot-from-data + line_confidence_band |
| Multi-dimension A/B comparison | plot-from-data + radar_dual_series |
One-Line Summary
> Paper-figure quality is determined by aesthetic parameters, not just data. 9 styles distilled from real top-venue papers turn matplotlib tuning hell into one-sentence plotting, and plot-from-image compresses 'see a good figure → replicate the style' from hours to minutes.
References