mlsanityData to 7 Oct 2026

Drawing Pandas: A Benchmark for LLMs in Generating Plotting Code

arXiv 2412.02764 ↗First posted 3 Dec 2024cs.SE cs.AI cs.LGcited by 21

Not on the map. Why?

Abstract (arXiv)

This paper introduces the human-curated PandasPlotBench dataset, designed to evaluate language models' effectiveness as assistants in visual data exploration. Our benchmark focuses on generating code for visualizing tabular data - such as a Pandas DataFrame - based on natural language instructions, complementing current evaluation tools and expanding their scope. The dataset includes 175 unique tasks. Our experiments assess several leading Large Language Models (LLMs) across three visualization libraries: Matplotlib, Seaborn, and Plotly. We show that the shortening of tasks has a minimal effect on plotting capabilities, allowing for the user interface that accommodates concise user input without sacrificing functionality or accuracy. Another of our findings reveals that while LLMs perform well with popular libraries like Matplotlib and Seaborn, challenges persist with Plotly, highlighting areas for improvement. We hope that the modular design of our benchmark will broaden the current studies on generating visualizations. Our dataset and benchmark code are available online: https://huggingface.co/datasets/JetBrains-Research/PandasPlotBench; https://github.com/JetBrains-Research/PandasPlotBench.

Key facts. Cited by 21 papers in the map (data through 7 Oct 2026). Builds on 9 of its 23 references that are in the map. First posted on arXiv 3 Dec 2024.

Builds on

9 of 23 references.

References · 9

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2024The Llama 3 Herd of Modelscited by 14,192
  3. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
  4. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  5. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
  6. 2024ChartMimic: Evaluating LMM's Cross-Modal Reasoning Capability via Chart-to-Code Generationcited by 118
  7. 2024MatPlotAgent: Method and Evaluation for LLM-Based Agentic Scientific Data Visualizationcited by 98
  8. 2023LLMs for Science: Usage for Code Generation and Data Analysiscited by 34
  9. 2021nvBench: A Large-Scale Synthesized Dataset for Cross-Domain Natural Language to Visualization Taskcited by 27

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 13; 2026: 8.

21 papers.

Sort:

By area:

  1. 2025Transforming Science with Large Language Models: A Survey on AI-assisted Scientific Discovery, Experimentation, Content Generation, and Evaluationcited by 41
  2. 2026PaperBanana: Automating Academic Illustration for AI Scientistscited by 22
  3. 2025TheoremExplainAgent: Towards Video-based Multimodal Explanations for LLM Theorem Understandingcited by 20
  4. 2025Exploring LLM Agents for Cleaning Tabular Machine Learning Datasetscited by 20
  5. 2025Draw with Thought: Unleashing Multimodal Reasoning for Scientific Diagram Generationcited by 14
  6. 2025VisCoder: Fine-Tuning LLMs for Executable Python Visualization Code Generationcited by 13
  7. 2026SciVisAgentBench: A Benchmark for Evaluating Scientific Data Analysis and Visualization Agentscited by 9
  8. 2025JanusCoder: Towards a Foundational Visual-Programmatic Interface for Code Intelligencecited by 7
  9. 2025An Evaluation-Centric Paradigm for Scientific Visualization Agentscited by 6
  10. 2025Code Aesthetics with Agentic Reward Feedbackcited by 6
  11. 2025Manimator: Transforming Research Papers into Visual Explanationscited by 5
  12. 2025MLDebugging: Towards Benchmarking Code Debugging Across Multi-Library Scenarioscited by 3
9 more
  1. 2025OpusAnimation: Code-Based Dynamic Chart Generationcited by 3
  2. 2025VisCoder2: Building Multi-Language Visualization Coding Agentscited by 3
  3. 2026VisPhyWorld: Probing Physical Reasoning via Code-Driven Video Reconstructioncited by 3
  4. 2026Aligning Text, Code, and Vision: A Multi-Objective Reinforcement Learning Framework for Text-to-Visualizationcited by 2
  5. 2026Executing as You Generate: Hiding Execution Latency in LLM Code Interpreterscited by 2
  6. 2026PairCoder++: Pair Programming as a Universal Paradigm for Verified Code-Driven Multimodal and Structured-Artifact Generationcited by 2
  7. 2025InteractScience: Programmatic and Visually-Grounded Evaluation of Interactive Scientific Demonstration Code Generationcited by 1
  8. 2026VegaChat: A Robust Framework for LLM-Based Chart Generation and Assessmentcited by 1
  9. 2026SciVisAgentSkills: Design and Evaluation of Agent Skills for Scientific Data Analysis and Visualizationcited by 1