{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "sakanaai-autoillustrate--draft-paper-method-figure",
 "repo": "SakanaAI/AutoIllustrate",
 "repo_url": "https://github.com/SakanaAI/AutoIllustrate",
 "repo_slug": "sakanaai-autoillustrate",
 "title": "Draft a method figure from a paper's methods section",
 "page_title": "How to draft a method figure from a paper's methods section with Auto Illustrate",
 "summary": "Generate an editable draw.io figure and a restyled PNG from a LaTeX methods section in one command.",
 "who": "A researcher preparing a paper who needs a front-page or method diagram and has the methods text in a .tex file.",
 "problem": "Drawing a clear method diagram by hand in draw.io takes hours, and a figure that is not editable is hard to revise after feedback.",
 "outcome": "A run folder with an editable full_figure.drawio, a deterministic full_figure.png, and a restyled full_figure_enhanced.png.",
 "steps": [
  "Install the draw.io desktop app so the drawio command is on PATH, and install the Claude Code CLI so claude is on PATH. (inferred, check the README)",
  "`npm install -g autoillustrate`",
  "`autoillustrate doctor`",
  "`autoillustrate examples/ai_scientist_method.tex --prompt \"Please make a diagram illustrating the method of our scientific research paper in a single panel. We intend to use it as front-page diagram in our research paper.\"` (replace the path with your own .tex file and edit the prompt to describe your method) (inferred, check the README)",
  "Open the newest folder under runs/ and read the files in its figures/ folder. Use full_figure.drawio for edits and full_figure_enhanced.png for the restyled image."
 ],
 "agent_prompt": "Using the repo SakanaAI/AutoIllustrate, run autoillustrate on <path to methods .tex file> with a prompt asking for a single-panel front-page method diagram. Confirm that the newest runs/ folder contains figures/full_figure.drawio, figures/full_figure.png and figures/full_figure_enhanced.png, and report that folder path.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "Matplotlib subplots and placeholder boxes are not directly editable in draw.io, and a default medium run takes about 15 minutes.",
 "category": "Research",
 "tags": [
  "Research"
 ],
 "lang": "typescript",
 "requirements": [
  "Node 22 or newer",
  "draw.io desktop CLI on PATH as drawio",
  "Claude Code CLI (claude) on PATH, since it is the default agent",
  "OPENAI_API_KEY set in the shell or a .env file",
  "Python 3.10 or newer (the CLI creates its own cached venv on first run)"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Coding agents launched by the tool inherit your environment, including OPENAI_API_KEY, so run it on trusted papers and preferably inside a container or VM."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/sakanaai-autoillustrate/draft-paper-method-figure/",
 "md": "https://dedupedai.com/use-cases/sakanaai-autoillustrate/draft-paper-method-figure/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/sakanaai-autoillustrate--draft-paper-method-figure.json",
 "api_version": "v1"
}
