whatisgithub

What is naturepanelforge?

littlepeachs/naturepanelforge — explained in plain English

Analysis updated 2026-05-18

58PythonAudience · researcherComplexity · 4/5Setup · moderate

In one sentence

A research tool that turns a scientific chart image from a paper into working Python code that reproduces that chart, using an AI agent loop.

Mindmap

mindmap
  root((naturepanelforge))
    What it does
      Extracts figures from papers
      Classifies chart types
      Generates matplotlib code
    Tech stack
      Python
      Matplotlib
      AI agent loop
    Use cases
      Reproduce a figure from a DOI
      Use as a coding agent skill
      Browse a gallery of results
    Audience
      Researchers
      Benchmark builders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Give the tool a paper DOI and have it fetch, split, and reproduce the figures as Python code.

USE CASE 2

Install the tool as a skill inside an AI coding agent to reproduce a pasted chart image.

USE CASE 3

Browse a web gallery of previously reproduced chart panels.

USE CASE 4

Build a benchmark dataset of scientific plotting tasks from published figures.

What is it built with?

PythonMatplotlib

How does it compare?

littlepeachs/naturepanelforgeamazinghorseli/rednote-insightcp-cp/liveedit
Stars585859
LanguagePythonPythonPython
Setup difficultymoderatemoderatehard
Complexity4/53/55/5
Audienceresearcherpm founderresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 1h+

Requires access to an AI model for the classification and code-generation agent loop.

So what is it?

NaturePanelForge is a research tool that takes a scientific chart image from a published paper and tries to produce working Python code that reproduces that chart. The target audience is researchers who want to adapt or reuse a figure style from a Nature-family journal paper, or who want to build benchmark datasets of scientific plotting tasks. The workflow has three main stages. First, it retrieves the full figure from an open-access paper and splits compound figures (those with panels labeled A, B, C, etc.) into individual crops. Second, an AI model classifies each panel by chart type, bar chart, bubble plot, line graph, heatmap, and so on, and scores how well-suited it is for code reproduction. Third, an AI agent loop writes Python and matplotlib code to reproduce the panel, renders the result, checks it against a set of criteria, and refines the code over several attempts if the output does not match. You can use the tool in four modes. The simplest is to run a pre-written script that rerenders a checked-in example. The second installs a skill into an AI coding agent (such as OpenAI Codex) so you can paste a prompt describing the target image and have the agent handle the full reproduction process. The third mode is a full pipeline that starts from a paper DOI, fetches the figures, splits them, classifies them, and runs the agent loop in sequence. The fourth is a web gallery for browsing and searching completed reproductions. The tool is oriented toward scientific computing and reproducibility research. It is not a general chart editor or a tool for creating new charts from scratch. If you have a specific reference figure style you want to apply to your own data, the README notes that a different project called FigMirror is a better fit for that task. NaturePanelForge is focused on turning existing published panels into verifiable, rerunnable code as a benchmark exercise.

Copy-paste prompts

Prompt 1
Help me run this tool's full pipeline starting from a paper's DOI.
Prompt 2
Show me how to install this repo's skill into an AI coding agent like Codex.
Prompt 3
Explain how this tool classifies chart panels and scores them for code reproduction.
Prompt 4
Walk me through the agent loop this repo uses to refine matplotlib code until it matches the target image.

Frequently asked questions

What is naturepanelforge?

A research tool that turns a scientific chart image from a paper into working Python code that reproduces that chart, using an AI agent loop.

What language is naturepanelforge written in?

Mainly Python. The stack also includes Python, Matplotlib.

How hard is naturepanelforge to set up?

Setup difficulty is rated moderate, with roughly 1h+ to a first successful run.

Who is naturepanelforge for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.