Skip to content
Skills Library
Science & research · Building & coding

paper-figures

/paper-figures

Create, restyle, or review publication-ready Matplotlib figures for academic papers, reports, and theses. Use for requests such as "论文风格的图", "paper-style figures", "IEEE/ACM figure", or "publication-quality plot" that need venue-aware sizing, accessible styling, research chart forms, or vector PDF output. Do not use for general LaTeX editing or document tasks that do not involve figures.

Licence
MIT
Last repository change
29.10.2026

Assessment and security

95/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
18
Scripts
7
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 29.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 7 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: examples/bars.py, examples/gallery.py, examples/lines.py, paper_style.py, tools/build_assets.py, tools/package_skill.py, tools/validate_palette.py

What it does and when to use it

Create, restyle, or review publication-ready Matplotlib figures for academic papers, reports, and theses. Use for requests such as "论文风格的图", "paper-style figures", "IEEE/ACM figure", or "publication-quality plot" that need venue-aware sizing, accessible styling, research chart forms, or vector PDF output. Do not use for general LaTeX editing or document tasks that do not involve figures.

Triggers from the description

论文风格的图paper-style figuresIEEE/ACM figurepublication-quality plot
Original author description

Create, restyle, or review publication-ready Matplotlib figures for academic papers, reports, and theses. Use for requests such as "论文风格的图", "paper-style figures", "IEEE/ACM figure", or "publication-quality plot" that need venue-aware sizing, accessible styling, research chart forms, or vector PDF output. Do not use for general LaTeX editing or document tasks that do not involve figures.

How it works

  1. 1. Pick the venue
  2. 2. Pick the form
  3. 3. Color
  4. 4. Axes, annotations, legend
  5. 5. Check before finishing
Original SKILL.md headings · 91 lines, 742 words
SKILL.md preview
---
name: paper-figures
description: Create, restyle, or review publication-ready Matplotlib figures for academic papers, reports, and theses. Use for requests such as "论文风格的图", "paper-style figures", "IEEE/ACM figure", or "publication-quality plot" that need venue-aware sizing, accessible styling, research chart forms, or vector PDF output. Do not use for general LaTeX editing or document tasks that do not involve figures.
---

# Paper figures

Style module: `paper_style.py` in this skill's directory. Import it instead of
retyping values (or copy the file next to the user's script):

```python
import sys; sys.path.insert(0, "<this skill's directory>")
from paper_style import *

venue = use_venue("ieee")   # ieee | acm | usenix | icml | neurips | article
fig, ax = plt.subplots(figsize=figsize("column", 2.2))   # or "text", or a fraction like 0.5
...
save_paper(fig, "figures/result")                          # writes figures/result.pdf
```

Ready-made code for nine chart forms is in `examples/gallery.py` (one `draw_*`
function per form). Copy the closest one and adapt it rather than starting from scratch.

## 1. Pick the venue

- If the user has not named a venue, infer it from their LaTeX class
  (`IEEEtran`, `acmart`, `usenix`, `icml20xx`, `neurips_20xx`, `article`). Ask
  only when the choice materially changes the requested result; otherwise state the default used.
- `use_venue(name)` sets the font (Times / Libertine / Computer Modern),
  font sizes and default color cycle. `figsize("column" | "text", height)` gives the
  venue-aware default width. Confirm unusual template options against the actual
  `\columnwidth` or `\textwidth`. Design near final size and include with
  `\includegraphics[width=\columnwidth]{...}` (or `\textwidth`).
- Heights: 2.2 in for one panel, 3.55 in for two stacked panels (`sharex=True`,
  `hspace=0.28`), 1.45 in for a horizontal strip.

## 2. Pick the form

| Data's job | Form | Helper / example |
|---|---|---|
| Policy × condition comparison | grouped bars + min–max whiskers | `bar_style`, `range_whisker` · `draw_grouped_bars` |
| Outcome shares | stacked horizontal bars, % labels | `bar_style` · `draw_stacked_breakdown` |
| Metric over a swept parameter | line + shaded band | `line_with_band` · `draw_line_band` |
| Latency / tail distribution | CDF, log x, p99 markers | `cdf_line` · `draw_cdf` |
| Two-parameter sweep | annotated sequential heatmap | `annotated_heatmap` · `draw_heatmap` |
| Throughput vs. latency | scatter + method frontier | `draw_pareto` |
| Component contributions | ablation barh with deltas | `draw_ablation` |
| Behavior over time | line, shaded event window | `draw_timeseries` |
| Per-method spread | box plot | `paper_boxplot` · `draw_boxplot` |

Avoid dual y-axes, pie charts, 3-D, and radar charts by default. If the user
explicitly requests one, preserve that choice and explain readability trade-offs.

## 3. Color

- Baseline = gray `BASELINE #a6a6a6`; proposed method = blue `METHOD #6b9bc8`.
- Lines: `PALETTE` order (method, orange, teal, red, gray) paired with `MARKERS`
  (o, s, ^, D, v). Always pass the marker so series differ without color.
- Stacked outcomes: good `TEAL`, warning `ORANGE`, neutral `GRAY #d9d9d9`, bad `RED`;
  in-segment text `LABEL_ON_FILL`.
- Magnitudes: prefer `sequential_cmap()` (one-hue blue) over a rainbow map.
- Every filled mark gets the thin dark outline from `bar_style(color)`.
- Text is ink (`INK`, `MUTED_INK`), never the series color.
- Colorblind limits of this soft palette (checked with Machado 2009 simulation):
  never put `TEAL` and `BASELINE` gray in the same chart (ΔE 3.2 under deuteranopia);
  baseline-gray vs. method-blue is at the floor (ΔE 7.8 protan), so keep outlines,
  legends and direct labels; use at most four colored series and let markers carry the fifth.
- Before adding colors, run `python3 tools/validate_palette.py` and retain a
  non-color cue for any pair below the comfortable threshold.

## 4. Axes, annotations, legend

- `paper_axis(ax)`: no top/right spines, light grid behind data
  (`grid_axis=None` for line charts, `"both"` for CDF/scatter).
- Left-aligned panel titles `panel_title(ax, "(a) ...")`.
- Divide condition groups with `group_separator(ax, x)`; label a run of
  related ticks with one bracket and caption instead of repeating a prefix.
- Bars are means over seeds; `range_whisker` only when > 1 seed, plus
  `range_legend_handle()` labelled "Seed range"; say in the caption that
  single-seed bars have no whisker. Bands: say whether they are std, CI, or min–max.
- Targets: `target_line(ax, y, "target 0.90", x_text)`.
- Value labels only on the headline panel; stacked % labels only on segments ≥ 4.5–8 %.
- Legend: frameless one row above the panels (`top_legend`) for bars;
  `inside_legend(ax)` for line charts with ~35 % y headroom so it never covers data.
- Math in labels: `"200$\\times$"`.

## 5. Check before finishing

1. Render the PDF and look at it (convert a page to PNG if needed): no label
   collisions, legend never on a title or data, nothing clipped.
2. Text is ≥ 5.5 pt at final size.
3. Caption states what bars, whiskers and bands mean.
4. Never publish figures built from the user's unpublished experimental data
   as examples (READMEs, public repos, slides for others) without asking; use synthetic data.
Files in this package (18)
  • .gitignore 1 KB
  • LICENSE 1 KB
  • README.md 7 KB
  • README.zh-CN.md 7 KB
  • SKILL.md 5 KB
  • paper_style.py 11 KB
  • requirements.txt 1 KB
  • assets/before_after.png 104 KB
  • assets/colorblind.png 297 KB
  • assets/gallery.png 186 KB
  • assets/social_preview.png 147 KB
  • assets/venues.png 109 KB
  • examples/bars.py 2 KB
  • examples/gallery.py 8 KB
  • examples/lines.py 2 KB
  • tools/build_assets.py 9 KB
  • tools/package_skill.py 2 KB
  • tools/validate_palette.py 3 KB

Versions

RepositoryScoreLicence
This page · liuhao030922/academic-figure-skill95MIT
EvoScientist/EvoSkills100Apache-2.0
Benz-Poobua/benz-skills90MIT

Database snapshot: 13.11.2026 · package version badcb46546d5 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95paper-figure-nature
    Generate publication-ready matplotlib figures matching Nature journal standards. Use when user says 'Nature figure', 'publication figure', or asks for journal-grade plots.
  • 91paper-figure
    Generate publication-quality figures and tables from experiment results. Use when user says \"画图\", \"作图\", \"generate figures\", \"paper figures\", or needs plots for a paper.
  • 100paper-figure
    Generate publication-quality figures and tables from experiment results. Use when user says \"画图\", \"作图\", \"generate figures\", \"paper figures\", or needs plots for a paper.
  • 100tavotto-figure
    画 matplotlib 论文级图表,并用 Tavotto 继续微调(拖图例、改字号线宽、调刻度、按出版规范预检、导出矢量 PDF);也把用户**已经画好的图**按投稿要求改宽度 / 字体 / 最小字号而不重画(保留式规范化)。用户要画图、出图、做 figure、画折线/柱状/散点/误差棒、做论文配图、scientific plot / publication figure,要把现有图改成 8 cm / 换 Times New Roman / 字号不小于 8 pt,或提到 Tavotto 时使用。
  • 100paper-figure
    Generate publication-quality figures and tables from experiment results. Use when user says \\\"\u753b\u56fe\\\", \\\"\u4f5c\u56fe\\\", \\\"generate figures\\\", \\\"paper figures\\\", or needs plots for a paper.
  • 100paper-figure
    Generate publication-quality figures and tables from experiment results. Use when user says \"画图\", \"作图\", \"generate figures\", \"paper figures\", or needs plots for a paper.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.