Generate Plot
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
- Parse
$ARGUMENTS— extract the data file path and visualization intent - Read and validate the data file (CSV or JSON)
- PRIMARY: Use the direct Python API via
paperbanana_direct.pyscript: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 - If the script is not found, FALLBACK: generate using Python (matplotlib/seaborn) with academic styling
- Save output PNG to
figures/in the workspace (300 DPI, tight layout) - Provide the LaTeX
\begin{figure}snippet ready for inclusion - Show the user the generated figure using the Read tool on the PNG path