TL;DR
While large language models (LLMs) excel at generating runnable chart code, the resulting figures rarely fit seamlessly into academic papers without tedious manual revisions. To bridge this gap, chart-plot introduces an agentic harness that automatically tunes chart styles to specific venues, tests and corrects layouts directly within LaTeX templates, and provides a user-friendly GUI for precise, token-free edits.
What Problem Does This Paper Address?
The authors argue that the bottleneck in AI-assisted paper writing is no longer chart code generation, but chart publication. When researchers use standard LLMs to generate matplotlib code, the outputs typically suffer from three distinct "last mile" failure modes:
- Style Mismatch: Every academic community has unwritten visual norms (e.g., AI papers favor low-saturation palettes and sans-serif fonts, while systems papers prefer serif typography and hatched bars). Naive LLM outputs look generic and out of place.
- Deployment Mismatch: A chart that looks perfectly legible at a default standalone size often becomes completely unreadable (overlapping text, clipped titles, tiny fonts) when shrunk down into a tight, two-column LaTeX paper layout.
- Edit Mismatch: Making micro-adjustments via text prompts (like "move the legend a tiny bit to the right") is notoriously unreliable with LLMs, frequently leading to code drift or unintended changes.
Methods
To solve these issues, chart-plot acts as a deterministic scaffold around a generative LLM, operating across three specialized layers:
- Style-Aware Code Generation: Instead of relying on generic prompts, the system injects a "textual style skill"—a markdown summary of visual conventions distilled from actual accepted papers at the target venue (e.g., VLDB, SIGMOD, ICML)—directly into the LLM's system prompt.
- Deployment-Aware Render Loop: The harness compiles the generated chart inside the actual target LaTeX context. It automatically measures the bounding boxes and runs structured diagnostics to catch layout violations (e.g., font too small, width violation). If a check fails, it feeds specific instructions back to the LLM to regenerate and fix the code.
- Multimodal Edit Layer: For fine-grained aesthetic choices, the system maps the chart's visual elements to interactive click-targets in a web interface. When an author tweaks a setting (like legend placement or line color), the system mutates the Abstract Syntax Tree (AST) of the underlying Python code directly, bypassing the LLM entirely.
Datasets
The system relies on a curated corpus of figures extracted from accepted PDFs at target venues, paired with their captions, to distill venue-specific style guidelines.
For the evaluation case studies, the authors utilized several standard datasets relevant to computer science and systems research:
- Case 1 (Grouped-bar ablation): Evaluated using five relational/knowledge graph datasets: ICEWS 14, ICEWS 05-15, YAGO 11k, Wikidata 12k, and GDELT.
- Case 2 & 3 (Scaling line & paired distributions): Evaluated using simulated and empirical systems performance data (e.g., query latency and queue lengths across various scheduling policies).
Key Insights and Ideas
- Layout is Context-Dependent: A chart cannot be verified in isolation. True publication readiness can only be determined by compiling the figure directly within its final document layout environment.
- Geometric Edits Cost Zero Tokens: By using direct GUI manipulation that maps straight to AST code mutations, authors can make precise layout adjustments instantly without wasting LLM prompt tokens or risking model hallucinations.
- Co-Design Speeds Up Convergence: When the style skill successfully pre-conditions the LLM with a column-aware layout budget from the start, the automated deployment loop often converges immediately without needing multiple correction cycles.
Key Results
The authors validated chart-plot through three common systems paper chart types and a user study featuring four computer science researchers.
In the user study, participants rated the system against a baseline coding LLM using a 5-point Likert scale. chart-plot lifted mean ratings by 1.50–2.50 points across all metrics. The most dramatic improvements were seen in column-width readability (jumping from a score of 2.00 to 4.50) and continued-use intent (jumping from 2.50 to 4.50).
Limitations and Future Work
Currently, chart-plot is primarily tailored to the visual idioms of the computer science and systems research communities. The authors acknowledge that different academic fields (such as finance or biology) have vastly different charting standards, such as specific ways of shading time-series regions or annotating anomalies.
Future work will focus on building an open-source library of expert-distilled style skills spanning multiple diverse academic domains, alongside expanding the harness to support other popular coding agents like OpenAI Codex.
Summary updated