Drawing Pandas: A Benchmark for LLMs in Generating Plotting Code
Timur Galimzyanov, Sergey Titov, Yaroslav Golubev, and Egor Bogomolov
April, 2025. Published in the proceedings of MSR'25 (A).
Abstract. 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 benchmark is available online: https://huggingface.co/datasets/JetBrains-Research/plot_bench. The code for running the benchmark is also available: https://github.com/JetBrains-Research/PandasPlotBench.
Paper Pre-print Data ToolCiting publications
- Rethinking NL2VIS: A Comparative Survey of LLM-Based Natural-Language-to-Visualisation Frameworks
Tai, Hock Lin, Ma, Yunshan, Wang, Zhaoxia · Pacific-Asia Conference on Knowledge Discovery and Data Mining · 2027 - Beyond NL2Code: A Structured Survey of Multimodal Code Intelligence
Zhao, Xuanle, Sun, Qiushi, Xiao, Jingyu, Liu, Xuexin, Yang, Haoyue, Chen, Qiaosheng, Luo, Xianzhen, Huang, Jing, Zhong, Yufeng, Chen, Lei, Fu, Shuai, Wei, Zhenlin, Bi, Jinhe, Jiang, Lei, Qiu, Haibo, Yang, Siqi, Shi, Peng, Hu, Jian, Zeng, Zhixiong · 2026 - The Rise of Language Models in Mining Software Repositories: A Survey
Romero-Arjona, Miguel, Barakat, Saman, Sánchez, Ana B., Segura, Sergio · 2026 - SciVisAgentBench: A Benchmark for Evaluating Scientific Data Analysis and Visualization Agents
Ai, Kuangshi, Miao, Haichao, Tang, Kaiyuan, Gorski, Nathaniel, Sun, Jianxin, Liu, Guoxi, Ingolfsson, Helgi I., Lenz, David, Guo, Hanqi, Yu, Hongfeng, Leburu, Teja, Molash, Michael, Wang, Bei, Peterka, Tom, Wang, Chaoli, Liu, Shusen · 2026 - VisPhyWorld: Probing Physical Reasoning via Code-Driven Video Reconstruction
Liang, Jiarong, Ku, Max, Hui, Ka-Hei, Nie, Ping, Chen, Wenhu · 2026 - PaperBanana: Automating Academic Illustration for AI Scientists
Dawei Zhu, Rui Meng, Yale Song, Xiyu Wei, Sujian Li, Tomas Pfister, Jinsung Yoon · International Conference on Machine Learning · 2026 - VegaChat: A Robust Framework for LLM-Based Chart Generation and Assessment
Hostnik, Marko, Kurbanov, Rauf, Sokolov, Yaroslav, Trofimov, Artem · 2026 - Aligning Text, Code, and Vision: A Multi-Objective Reinforcement Learning Framework for Text-to-Visualization
Mizanur Rahman, Mohammed Saidul Islam, Md Tahmid Rahman Laskar, Shafiq Joty, Enamul Hoque · Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers) · 2026 - PlotCraft: Pushing the Limits of LLMs for Complex and Interactive Data Visualization
Jiajun Zhang, Jianke Zhang, Zeyu Cui, Jiaxi Yang, Lei Zhang, Zilei Wang, Qiang Liu, Liang Wang, Binyuan Hui, Junyang Lin · International Conference on Machine Learning · 2026 - Vision-language model performance on physics tasks: Exploring AI capabilities on research-based assessments involving visual representations
G Polverini · 2026 - SSVG-Bench: Benchmarking Large Language Models on the Generation of Structured Scientific Vector Graphics
S Kosugi · IEEE Access · 2026 - PairCoder++: Pair Programming as a Universal Paradigm for Verified Code-Driven Multimodal and Structured-Artifact Generation
J Chen, X Li, M Chen, B Zhang, H Zhang, Y Xu · arXiv preprint arXiv … · 2026 - PrismaCoder: Pushing the Boundaries of Open Multimodal Code Intelligence through Decomposed Rubric Synthesis
Q Sun, J Gong, Y Liu, Q Chen, Z Yin, Z Huang · arXiv preprint arXiv … · 2026 - RealChart2Code: Bridging the Gap in Real-World Chart-to-Code Generation via Multi-Task Evaluation
J Zhang, Y Li, Z Li, X Guo, J Wu, L Zheng · Proceedings of the … · 2026 - Executing as You Generate: Hiding Execution Latency in LLM Code Interpreters
Z Sun, Z Lin, Z Chen, C Yang, M Zhou, L Li · arXiv preprint arXiv … · 2026 - SciVisAgentSkills: Design and Evaluation of Agent Skills for Scientific Data Analysis and Visualization
K Ai, H Miao, K Tang, S Liu, C Wang · arXiv preprint arXiv:2606.05525 · 2026 - Urania: Visualizing data analysis pipelines for natural language-based data exploration
Y Guo, X Qi, H Li, J Zhang, D Shi, Q Chen · ACM Transactions on … · 2026 - Viscoder2: Building multi-language visualization coding agents
Y Ni, S Cai, X Chen, J Liang, Z Lyu · International … · 2026 - Januscoder: Towards a foundational visual-programmatic interface for code intelligence
Q Sun, J Gong, Y Liu, Q Chen, L Li · International … · 2026 - Benchmarking, Analyzing, and Fine-tuning Large Language Models for Coding Tasks
M Abdollahi · 2026 - Manimator: Transforming Research Papers into Visual Explanations
P, Samarth, Jain, Vyoman, Golugula, Shiva, Sathvik, Motamarri Sai · 2025 - A Manim-Based Automatic Video Generation System for Explaining Visual-Spatial Mathematics Problems
X Liu, H Ming, X Yu · 2025 International Conference on … · 2025 - Large language model approaches to educational video generation using Manim
RS Rammuni Silva, A Lotfi, IK Ihianle · UK Workshop on … · 2025 - Towards Multi-Language Visualization Coding Agents
Y Ni · 2025 - Evaluating large language models for natural-language-to-code generation on aggregate Czech public health data analysis
O Klempir, L Dusek, R Krupicka, G Donin, J Zigmond · medRxiv · 2025 - Opusanimation: Code-based dynamic chart generation
B Li, M Yang, Z Chen, J Cao, M Liu, Y Lu, Y Wu · arXiv preprint arXiv … · 2025 - Interactscience: Programmatic and visually-grounded evaluation of interactive scientific demonstration code generation
Q Chen, Y Liu, L Li, K Chen, Q Guo, G Cheng · arXiv preprint arXiv … · 2025 - Mldebugging: Towards benchmarking code debugging across multi-library scenarios
J Huang, X Feng, Q Chen, H Zhao · Findings of the … · 2025 - An evaluation-centric paradigm for scientific visualization agents
K Ai, H Miao, Z Li, C Wang, S Liu · arXiv preprint arXiv:2509.15160 · 2025 - Draw with thought: Unleashing multimodal reasoning for scientific diagram generation
Z Cui, J Yuan, H Wang, Y Li, C Du, Z Ding · Proceedings of the 33rd ACM … · 2025 - VisCoder: Fine-Tuning LLMs for Executable Python Visualization Code Generation.
Y Ni, P Nie, K Zou, X Yue, W Chen · EMNLP (Findings) · 2025 - Exploring llm agents for cleaning tabular machine learning datasets
T Bendinelli, A Dox, C Holz · arXiv preprint arXiv:2503.06664 · 2025 - NL2Vis Transformed: From Linguistic Abstraction to Visual Specification in the Generative AI Era
HTM Luong, VT Nguyen · SN Computer Science · 2025 - Theoremexplainagent: Towards video-based multimodal explanations for llm theorem understanding
M Ku, CH Chong, J Leung, K Shah, A Yu · Proceedings of the … · 2025 - Surveying the benchmarking landscape of large language models in code intelligence
M Abdollahi, R Zhang, N Shiri Harzevili, J Shin · ACM Transactions on … · 2025 - Studying Software Engineering Processes within Computational Notebooks
MS Siddik · 2025
