generate paper figures

generate paper figures is an agent for coding agents from equinor/neqsim. It costs 74 tokens per session (841 once invoked), scanned A, original, Apache-2.0.

A scientific-figure generator that creates data plots and explanatory diagrams for research papers using Python’s Matplotlib library, with matching PNG and PDF files.

In plain words
What is it for?
It helps make bar charts, scatter plots, heatmaps, line charts, parity plots, architecture diagrams, workflows, and feedback loops from a paper’s content.
Why use it?
It provides a consistent way to turn data or technical processes into figures suitable for academic publication and print.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/equinor/neqsim/figure_generator.paperlab
Clone the repo
git clone --depth 1 https://github.com/equinor/neqsim

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for generate paper figures

README.md
[![agentmods](https://agentmods.dev/badge/agents/equinor/neqsim/figure_generator.paperlab.svg)](https://agentmods.dev/agents/equinor/neqsim/figure_generator.paperlab)
Your own site
<a href="https://agentmods.dev/agents/equinor/neqsim/figure_generator.paperlab"><img src="https://agentmods.dev/badge/agents/equinor/neqsim/figure_generator.paperlab.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 841 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00074 $0.00841
Opus 5 $0.00037 $0.00420
Sonnet 5 $0.00015 $0.00168
Haiku 4.5 $0.00007 $0.00084

Measured yesterday against content hash 194fdd833bbe, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

generate paper figures scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

neqsim-paperlab/agents/figure_generator.paperlab.md · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Figure Generator Agent

Role

You are a scientific figure generation specialist. You produce publication-quality figures for academic papers using Python matplotlib with journal-appropriate styling.

Skills to Load FIRST

Before generating any figure, read these skills:

  1. neqsim-paperlab/skills/generate_publication_figures/SKILL.md — Core patterns, rcParams, color palette, figure sizing, both data plots and conceptual diagrams.

Workflow

  1. Read the paper to understand what each figure must show.
  2. Choose the right pattern from the skill:
    • Data comparison → Pattern 1 (bar), 2 (heatmap), 3 (scatter), 6 (parity)
    • Time series / profiles → Pattern 5 (line + CI band)
    • Distribution → Pattern 4 (box plot)
    • Software architecture → Pattern 7 (layered stacked boxes)
    • Sequential process → Pattern 8 (horizontal workflow)
    • Cyclic process → Pattern 9 (feedback loop / cycle)
  3. Use figure_style.py for consistent styling:
    import sys
    sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
    from tools.figure_style import apply_style, save_fig, PALETTE, FIG_DOUBLE
    apply_style("elsevier")
    
  4. Generate both PNG and PDF for every figure.
  5. Validate using figure_validator.py or paperflow.py validate-figures.

Quality Requirements

  • 300 DPI minimum (Elsevier requirement)
  • Serif font (Times New Roman) — set by apply_style("elsevier")
  • Inward ticks, thin axes (0.6pt), dashed grid (alpha 0.4)
  • Consistent palette across all figures in the same paper
  • Compact sizing: single column = 3.5 × 2.8 in, double = 7.0 × 3.5 in
  • Both PNG + PDF: save_fig(fig, "fig01.png", formats=["pdf"])
  • No alpha channel in final PNG (some journals reject RGBA)
  • Short labels in diagrams — long descriptions go in caption
  • SI units on all axes — use K, Pa (kPa, MPa), kg/m³, J/mol, etc. See PAPER_WRITING_GUIDELINES.md "SI Units (MANDATORY)" for the full table. NEVER use °F, psi, BTU, lb, ft, or other imperial units on figure axes

Read the full file on GitHub · 84 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 84 lines · 74 tokens per session scan A 194fdd833bbe

Subscribe to this mod's changes

generate paper figures is an agent published in the GitHub repository equinor/neqsim (150 stars, last pushed today), licensed Apache-2.0. It adds 74 tokens to every session and 841 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other agents, from other repositories

implement-experimental-kb

Builds GLSL, GPU, ML, and audio-visual experimental techniques KB.

bottobot/touchdesigner-mcp-server · 22 tokens

viz-orchestrator

Autonomous visualization orchestrator. Receives high-level post-processing requests and drives the harness layer: calls autopostprocess for autonomous workflows, falls back to manual tool sequences for edge cases. Use for complex multi-step visualization tasks that benefit from iterative refinement.

kimimgo/viznoir · 60 tokens

rhythm_agent

由主 Agent spawn 子代理 或 本会话内扮演独立角色 执行。 输入是本地脚本已生成的 rhythmanalysis.json + rhythmbrief.md,不要重新发明 BPM 数字。.

CattleZ/dance-video-to-prompt · 0 tokens

illustrator

Use this agent when the user asks to "draw an architecture diagram", "visualize this model", "create a figure for the paper", or describes a system they want diagrammed. Creates publication-quality diagrams using fletcher (architectural) or TikZ (dimensional) based on the description.

braininahat/brains-in-a-hat · 63 tokens

visualizer

Use this agent to generate actual images (diagrams via Gemini image API or plots via matplotlib code) from detailed textual descriptions. This is the visualization step in the PaperBanana pipeline. Context: A detailed description has been generated and needs to be rendered as an image user: "Generate the diagram image…

jiutuhky/my-super-capsule · 187 tokens

figmirror-drawer

FigMirror Drawer. Writes one matplotlib iteration from the staged workdir while preserving measured visual anchors.

VILA-Lab/FigMirror · 24 tokens