Plot2Code: A Comprehensive Benchmark for Evaluating Multi-modal Large Language Models in Code Generation from Scientific Plots
On the map: Multimodal LLMs / vision-language models → Chart understanding and anomaly detection
Abstract (arXiv)
The remarkable progress of Multi-modal Large Language Models (MLLMs) has attracted significant attention due to their superior performance in visual contexts. However, their capabilities in turning visual figure to executable code, have not been evaluated thoroughly. To address this, we introduce Plot2Code, a comprehensive visual coding benchmark designed for a fair and in-depth assessment of MLLMs. We carefully collect 132 manually selected high-quality matplotlib plots across six plot types from publicly available matplotlib galleries. For each plot, we carefully offer its source code, and an descriptive instruction summarized by GPT-4. This approach enables Plot2Code to extensively evaluate MLLMs' code capabilities across various input modalities. Furthermore, we propose three automatic evaluation metrics, including code pass rate, text-match ratio, and GPT-4V overall rating, for a fine-grained assessment of the output code and rendered images. Instead of simply judging pass or fail, we employ GPT-4V to make an overall judgement between the generated and reference images, which has been shown to be consistent with human evaluation. The evaluation results, which include analyses of 14 MLLMs such as the proprietary GPT-4V, Gemini-Pro, and the open-sourced Mini-Gemini, highlight the substantial challenges presented by Plot2Code. With Plot2Code, we reveal that most existing MLLMs struggle with visual coding for text-dense plots, heavily relying on textual instruction. We hope that the evaluation results from Plot2Code on visual coding will guide the future development of MLLMs. All data involved with Plot2Code are available at https://huggingface.co/datasets/TencentARC/Plot2Code.
Key facts. Cited by 20 papers in the map (data through 13 Oct 2026). Placed in Chart understanding and anomaly detection, one of 16 directions in Multimodal LLMs / vision-language models. Builds on 33 of its 40 references that are in the map. First posted on arXiv 13 May 2024.
Builds on
33 of 40 references.
References · 33
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2023GPT-4 Technical Reportcited by 18,278
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,979
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,376
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,492
- 2021Evaluating Large Language Models Trained on Codecited by 8,205
- 2023Visual Instruction Tuningcited by 7,827
- 2020Scaling Laws for Neural Language Modelscited by 6,494
- 2021Program Synthesis with Large Language Modelscited by 3,573
- 2023Mistral 7Bcited by 3,123
- 2022Training Compute-Optimal Large Language Modelscited by 2,972
- 2023MiniGPT-4: Enhancing Vision-Language Understanding with Advanced Large Language Modelscited by 2,703
21 more
- 2023InternVL: Scaling up Vision Foundation Models and Aligning for Generic Visual-Linguistic Taskscited by 2,546
- 2023Code Llama: Open Foundation Models for Codecited by 2,130
- 2023MMMU: A Massive Multi-discipline Multimodal Understanding and Reasoning Benchmark for Expert AGIcited by 2,057
- 2024Mixtral of Expertscited by 1,811
- 2022ChartQA: A Benchmark for Question Answering about Charts with Visual and Logical Reasoningcited by 1,461
- 2020DocVQA: A Dataset for VQA on Document Imagescited by 1,295
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,173
- 2023SEED-Bench: Benchmarking Multimodal LLMs with Generative Comprehensioncited by 933
- 2024Yi: Open Foundation Models by 01.AIcited by 715
- 2024DeepSeek LLM: Scaling Open-Source Language Models with Longtermismcited by 634
- 2023MiniGPT-v2: large language model as a unified interface for vision-language multi-task learningcited by 621
- 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Modelscited by 557
- 2024Mini-Gemini: Mining the Potential of Multi-modality Vision Language Modelscited by 362
- 2024SEED-X: Multimodal Models with Unified Multi-granularity Comprehension and Generationcited by 329
- 2023MINT: Evaluating LLMs in Multi-turn Interaction with Tools and Language Feedbackcited by 294
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 234
- 2024MMT-Bench: A Comprehensive Multimodal Benchmark for Evaluating Large Vision-Language Models Towards Multitask AGIcited by 193
- 2024LLaMA Pro: Progressive LLaMA with Block Expansioncited by 100
- 2023SEED-Bench-2: Benchmarking Multimodal Large Language Modelscited by 96
- 2023Vary: Scaling up the Vision Vocabulary for Large Vision-Language Modelscited by 84
- 2024SVGEditBench: A Benchmark Dataset for Quantitative Assessment of LLM's SVG Editing Capabilitiescited by 25
Built on by
Citing papers per year: 2024: 2; 2025: 14; 2026: 4.
20 papers.
Sort:
By area:
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 383
- 2024ScienceAgentBench: Toward Rigorous Assessment of Language Agents for Data-Driven Scientific Discoverycited by 226
- 2025Can MLLMs Reason in Multimodality? EMMA: An Enhanced MultiModal ReAsoning Benchmarkcited by 132
- 2025ChartCoder: Advancing Multimodal Large Language Model for Chart-to-Code Generationcited by 89
- 2025Learning Only with Images: Visual Reinforcement Learning with Reasoning, Rendering, and Visual Feedbackcited by 31
- 2024HumanEval-V: Benchmarking High-Level Visual Reasoning with Complex Diagrams in Coding Taskscited by 19
- 2025VCode: a Multimodal Coding Benchmark with SVG as Symbolic Visual Representationcited by 16
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2025Draw with Thought: Unleashing Multimodal Reasoning for Scientific Diagram Generationcited by 14
- 2025Boosting Chart-to-Code Generation in MLLM via Dual Preference-Guided Refinementcited by 11
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agentscited by 11
- 2025Improved Iterative Refinement for Chart-to-Code Generation via Structured Instructioncited by 9
8 more
- 2025BigCodeArena: Unveiling More Reliable Human Preferences in Code Generation via Executioncited by 5
- 2025VisCoder2: Building Multi-Language Visualization Coding Agentscited by 4
- 2026GeoTikzBridge: Advancing Multimodal Code Generation for Geometric Perception and Reasoningcited by 3
- 2026Chart Specification: Structural Representations for Incentivizing VLM Reasoning in Chart-to-Code Generationcited by 2
- 2025From Perception to Reasoning: Deep Thinking Empowers Multimodal Large Language Modelscited by 1
- 2026Probabilistic Programs of Thoughtcited by 1
- 2025Hierarchical Process Reward Models are Symbolic Vision Learnerscited by 0
- 2026ViCo: Visual-oriented Coding with Self-Reflection for Chart Replicationcited by 0
- 2026ViCo: Visual-oriented Coding with Self-Reflection for Chart Replication31 Aug 2026
- 2026Probabilistic Programs of Thought19 Apr 2026
- 2026GeoTikzBridge: Advancing Multimodal Code Generation for Geometric Perception and Reasoning24 Mar 2026
- 2026Chart Specification: Structural Representations for Incentivizing VLM Reasoning in Chart-to-Code Generation11 Feb 2026
- 2025Hierarchical Process Reward Models are Symbolic Vision Learners2 Dec 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025From Perception to Reasoning: Deep Thinking Empowers Multimodal Large Language Models17 Nov 2025
- 2025VCode: a Multimodal Coding Benchmark with SVG as Symbolic Visual Representation4 Nov 2025
- 2025VisCoder2: Building Multi-Language Visualization Coding Agents24 Oct 2025
- 2025BigCodeArena: Unveiling More Reliable Human Preferences in Code Generation via Execution9 Oct 2025
- 2025Learning Only with Images: Visual Reinforcement Learning with Reasoning, Rendering, and Visual Feedback28 Jul 2025
- 2025Improved Iterative Refinement for Chart-to-Code Generation via Structured Instruction15 Jun 2025
8 more
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agents8 May 2025
- 2025Draw with Thought: Unleashing Multimodal Reasoning for Scientific Diagram Generation13 Apr 2025
- 2025Boosting Chart-to-Code Generation in MLLM via Dual Preference-Guided Refinement3 Apr 2025
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Models12 Mar 2025
- 2025ChartCoder: Advancing Multimodal Large Language Model for Chart-to-Code Generation11 Jan 2025
- 2025Can MLLMs Reason in Multimodality? EMMA: An Enhanced MultiModal ReAsoning Benchmark9 Jan 2025
- 2024HumanEval-V: Benchmarking High-Level Visual Reasoning with Complex Diagrams in Coding Tasks16 Oct 2024
- 2024ScienceAgentBench: Toward Rigorous Assessment of Language Agents for Data-Driven Scientific Discovery7 Oct 2024
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 383
- 2025Can MLLMs Reason in Multimodality? EMMA: An Enhanced MultiModal ReAsoning Benchmarkcited by 132
- 2025Learning Only with Images: Visual Reinforcement Learning with Reasoning, Rendering, and Visual Feedbackcited by 31
- 2024HumanEval-V: Benchmarking High-Level Visual Reasoning with Complex Diagrams in Coding Taskscited by 19
- 2025Draw with Thought: Unleashing Multimodal Reasoning for Scientific Diagram Generationcited by 14
- 2026GeoTikzBridge: Advancing Multimodal Code Generation for Geometric Perception and Reasoningcited by 3
- 2026Chart Specification: Structural Representations for Incentivizing VLM Reasoning in Chart-to-Code Generationcited by 2
- 2025From Perception to Reasoning: Deep Thinking Empowers Multimodal Large Language Modelscited by 1
- 2026Probabilistic Programs of Thoughtcited by 1
- 2025Hierarchical Process Reward Models are Symbolic Vision Learnerscited by 0
- 2026Probabilistic Programs of Thought19 Apr 2026
- 2026GeoTikzBridge: Advancing Multimodal Code Generation for Geometric Perception and Reasoning24 Mar 2026
- 2026Chart Specification: Structural Representations for Incentivizing VLM Reasoning in Chart-to-Code Generation11 Feb 2026
- 2025Hierarchical Process Reward Models are Symbolic Vision Learners2 Dec 2025
- 2025From Perception to Reasoning: Deep Thinking Empowers Multimodal Large Language Models17 Nov 2025
- 2025Learning Only with Images: Visual Reinforcement Learning with Reasoning, Rendering, and Visual Feedback28 Jul 2025
- 2025Draw with Thought: Unleashing Multimodal Reasoning for Scientific Diagram Generation13 Apr 2025
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Models12 Mar 2025
- 2025Can MLLMs Reason in Multimodality? EMMA: An Enhanced MultiModal ReAsoning Benchmark9 Jan 2025
- 2024HumanEval-V: Benchmarking High-Level Visual Reasoning with Complex Diagrams in Coding Tasks16 Oct 2024
- 2024ScienceAgentBench: Toward Rigorous Assessment of Language Agents for Data-Driven Scientific Discoverycited by 226
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agentscited by 11
- 2025VisCoder2: Building Multi-Language Visualization Coding Agentscited by 4
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025VisCoder2: Building Multi-Language Visualization Coding Agents24 Oct 2025
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agents8 May 2025
- 2024ScienceAgentBench: Toward Rigorous Assessment of Language Agents for Data-Driven Scientific Discovery7 Oct 2024
Similar, not cited
Close in wording, no citation either way
- 2025PlotGen-Bench: Evaluating VLMs on Generating Visualization Code from Diverse Plots across Multiple Libraries
- 2026RealChart2Code: Advancing Chart-to-Code Generation with Real Data and Multi-Task Evaluation
- 2026From Pixel to Coding: Evaluating the Figure Reproduction Capabilities of MLLMs
- 2026Vision2Code: A Multi-Domain Benchmark for Evaluating Image-to-Code Generation
- 2025From Charts to Code: A Hierarchical Benchmark for Multimodal Models
- 2026PlotChain: Deterministic Checkpointed Evaluation of Multimodal LLMs on Engineering Plot Reading
- 2024Text2Chart31: Instruction Tuning for Chart Generation with Automatic Feedback
- 2024ScImage: How Good Are Multimodal Large Language Models at Scientific Text-to-Image Generation?