figure-generator

Convert LaTeX figure placeholders into includegraphics references with matplotlib plots.

6|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/ccam80/thesis-writer --skill figure-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: figure-generator
Source: https://github.com/ccam80/thesis-writer/tree/main/skills/figure-generator
Command: npx skills add https://github.com/ccam80/thesis-writer --skill figure-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates figure generation for LaTeX documents by converting figure placeholders in writer-produced .tex files into executable figures. It ensures consistent styling and reduces manual figure crafting.

Core Features & Use Cases

  • Placeholder-to-graphics generation: Replaces figure placeholders with \includegraphics pointing to generated outputs.
  • Plot templating & consistency: Creates or updates a shared figures/plot_defaults.py to unify styling across all figures.
  • Support for data plots and schematics: Generates Python scripts for data-driven plots and TikZ/Python schematics when possible.
  • Post-writer workflow: Runs after writer has produced the LaTeX prose and integrates with formatter for final polish.

Quick Start

After the writer step, run the figure-generator to convert all placeholders in your .tex files into includegraphics commands and generate figures in the figures/ directory. Ensure a figures/plot_defaults.py exists or is created to apply consistent styling.

Frequently Asked Questions about figure-generator

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

FAQPage Schema
How do I automatically generate figures from placeholders in a LaTeX document?

To generate figures from placeholders in a LaTeX document, use figure-generator to convert figure placeholders in writer-produced .tex files into executable Python scripts and replace them with includegraphics references.

How does matplotlib integration work for auto-generating thesis figures?

Matplotlib integration works by using a shared figures/plot_defaults.py file to apply consistent styling across all generated data plots and schematics, automatically writing the outputs to the figures/ directory.

Do I need a Python environment to automate LaTeX figure generation?

Yes, you need a Python environment with matplotlib installed to execute the data-driven plot scripts and generate the schematics required to replace placeholders in your .tex sources.

What is the best way to ensure consistent styling across auto-generated data plots?

The best way to ensure consistent styling is to use a shared figures/plot_defaults.py file in the document directory, which the figure-generator reads to unify styling across all created graphics.

Can I use this to generate both data plots and schematics for LaTeX?

Yes, figure-generator supports generating both data-driven plots using Python and schematics using TikZ or Python, converting them into ready-to-include graphics for your LaTeX documents.

When should I run figure generation in the LaTeX writing workflow?

You should run figure generation after the writer step has produced the LaTeX prose, as it operates on writer-generated .tex files to replace placeholders before the formatter applies the final polish.