Skip to content
Content
Command

/generate-plot

Generate a statistical plot from CSV/JSON data using PaperBanana. Provide a data file and describe the visualization intent.

From plugin
open-academic-paper-machine
1821 skills4 agents21 commands
Install
> /plugin marketplace add TobiasBlask/open-paper-machine
> /plugin install open-academic-paper-machine@open-paper-machine

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/generate-plot

Context preview

What this command does when you run it.

Generate a statistical plot from CSV/JSON data using PaperBanana. Provide a data file and describe the visualization intent.

Command definition

generate-plot.md
description: Generate a statistical plot from CSV/JSON data using PaperBanana. Provide a data file and describe the visualization intent.

Generate Plot: **$ARGUMENTS**

Read the figure-engine skill first.

Steps

1. Parse `$ARGUMENTS` — extract the data file path and visualization intent 2. Read and validate the data file (CSV or JSON) 3. **PRIMARY**: Use the direct Python API via `paperbanana_direct.py` script:

   PB_SCRIPT="$(find ~/.claude/plugins -name paperbanana_direct.py -path '*/open-academic-paper-machine/*' 2>/dev/null | head -1)" && \
   python3 "$PB_SCRIPT" plot \
     --data '{"col1": [...], "col2": [...]}' \
     --caption "Description of the plot" \
     --output-dir figures/ \
     --filename "fig_results_name.png" \
     --iterations 3

4. If the script is not found, **FALLBACK**: generate using Python (matplotlib/seaborn) with academic styling 6. Save output PNG to `figures/` in the workspace (300 DPI, tight layout) 7. Provide the LaTeX `\begin{figure}` snippet ready for inclusion 8. Show the user the generated figure using the Read tool on the PNG path

Ships withopen-academic-paper-machine

A Claude Code plugin that autonomously writes academic papers — from literature search to production-ready LaTeX/PDF. Scope note.

Get the whole plugin

Other commands on open-academic-paper-machine.