plot-from-image

Reproduces academic-paper figures as matplotlib code from uploaded images.

203|27|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/franklee16/academic-research-skills --skill plot-from-image
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: plot-from-image
Source: https://github.com/franklee16/academic-research-skills/tree/main/visualization/paper-plot-skills-main/plot-from-image
Command: npx skills add https://github.com/franklee16/academic-research-skills --skill plot-from-image

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It solves the time-consuming task of manually recreating a publication-quality academic figure when you only have an image of the original.

Core Features & Use Cases

  • Aspect-ratio first reproduction: Measures the image’s true proportions (AR) so the output matches the original layout.
  • Style matching pipeline: Detects whether the figure matches one of several pre-built chart styles (bars, lines with bands, inset/zoom panels, t-SNE clusters, broken axes, radar charts) and reuses the corresponding parameter set.
  • From-scratch reconstruction: When no style matches, it guides font/spine/tick direction, color palette identification, grid style, and special elements to rebuild the figure accurately.
  • Iterative matplotlib script workflow: Produces a reproducible Python plotting approach with clear steps for “measure → match → run → visually compare → refine.”

Quick Start

Upload the paper figure image you want to recreate and ask the assistant to reproduce it with Python matplotlib code that matches the original’s style, fonts, colors, and layout.

Frequently Asked Questions about plot-from-image

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I recreate a matplotlib figure from a screenshot for academic publishing?

Recreating a matplotlib figure from a screenshot involves measuring the image's true proportions, detecting style elements like fonts and color palettes, and generating a reproducible Python script that visually matches the original academic paper figure.

Can I reproduce publication figures with broken axes or inset panels in Python?

Yes, you can reproduce publication figures with broken axes or inset panels in Python by matching the detected chart style to a pre-built template. The process identifies special visual components and aligns them within tight tolerance to recreate the original layout accurately.

What is the best way to match font and color styles from an existing paper plot?

The best way to match font and color styles from an existing paper plot is through a style matching pipeline that identifies the figure's color palette, spine directions, and grid style, iteratively tuning parameters until the matplotlib output aligns with the original image.

Does this approach handle complex chart types like t-SNE clusters and radar charts?

Yes, this approach handles complex chart types like t-SNE clusters and radar charts by applying a style matching pipeline that detects pre-built chart parameters and reconstructs the visual components from scratch when necessary to match the original figure.

How do I reconstruct a chart from scratch when no pre-built template matches the image?

To reconstruct a chart from scratch when no template matches, the workflow guides you through identifying font directions, spine ticks, color palettes, and grid styles, then iteratively refines the matplotlib script parameters until the output matches the original proportions.

What are the limitations of reproducing academic figures from an image?

Limitations of reproducing academic figures from an image include the need for iterative parameter tuning to achieve tight tolerance alignment, and the requirement to visually compare and refine the output until the matplotlib script accurately matches the original figure's proportions and special visual components.