mlsanityData to 13 Oct 2026

Plot2Code: A Comprehensive Benchmark for Evaluating Multi-modal Large Language Models in Code Generation from Scientific Plots

arXiv 2405.07990 ↗First posted 13 May 2024cs.CL cs.CVcited by 20

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,320
  2. 2023GPT-4 Technical Reportcited by 18,278
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,979
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,376
  5. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,492
  6. 2021Evaluating Large Language Models Trained on Codecited by 8,205
  7. 2023Visual Instruction Tuningcited by 7,827
  8. 2020Scaling Laws for Neural Language Modelscited by 6,494
  9. 2021Program Synthesis with Large Language Modelscited by 3,573
  10. 2023Mistral 7Bcited by 3,123
  11. 2022Training Compute-Optimal Large Language Modelscited by 2,972
  12. 2023MiniGPT-4: Enhancing Vision-Language Understanding with Advanced Large Language Modelscited by 2,703
21 more
  1. 2023InternVL: Scaling up Vision Foundation Models and Aligning for Generic Visual-Linguistic Taskscited by 2,546
  2. 2023Code Llama: Open Foundation Models for Codecited by 2,130
  3. 2023MMMU: A Massive Multi-discipline Multimodal Understanding and Reasoning Benchmark for Expert AGIcited by 2,057
  4. 2024Mixtral of Expertscited by 1,811
  5. 2022ChartQA: A Benchmark for Question Answering about Charts with Visual and Logical Reasoningcited by 1,461
  6. 2020DocVQA: A Dataset for VQA on Document Imagescited by 1,295
  7. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,173
  8. 2023SEED-Bench: Benchmarking Multimodal LLMs with Generative Comprehensioncited by 933
  9. 2024Yi: Open Foundation Models by 01.AIcited by 715
  10. 2024DeepSeek LLM: Scaling Open-Source Language Models with Longtermismcited by 634
  11. 2023MiniGPT-v2: large language model as a unified interface for vision-language multi-task learningcited by 621
  12. 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Modelscited by 557
  13. 2024Mini-Gemini: Mining the Potential of Multi-modality Vision Language Modelscited by 362
  14. 2024SEED-X: Multimodal Models with Unified Multi-granularity Comprehension and Generationcited by 329
  15. 2023MINT: Evaluating LLMs in Multi-turn Interaction with Tools and Language Feedbackcited by 294
  16. 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 234
  17. 2024MMT-Bench: A Comprehensive Multimodal Benchmark for Evaluating Large Vision-Language Models Towards Multitask AGIcited by 193
  18. 2024LLaMA Pro: Progressive LLaMA with Block Expansioncited by 100
  19. 2023SEED-Bench-2: Benchmarking Multimodal Large Language Modelscited by 96
  20. 2023Vary: Scaling up the Vision Vocabulary for Large Vision-Language Modelscited by 84
  21. 2024SVGEditBench: A Benchmark Dataset for Quantitative Assessment of LLM's SVG Editing Capabilitiescited by 25

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2024: 2; 2025: 14; 2026: 4.

20 papers.

Sort:

By area:

  1. 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 383
  2. 2024ScienceAgentBench: Toward Rigorous Assessment of Language Agents for Data-Driven Scientific Discoverycited by 226
  3. 2025Can MLLMs Reason in Multimodality? EMMA: An Enhanced MultiModal ReAsoning Benchmarkcited by 132
  4. 2025ChartCoder: Advancing Multimodal Large Language Model for Chart-to-Code Generationcited by 89
  5. 2025Learning Only with Images: Visual Reinforcement Learning with Reasoning, Rendering, and Visual Feedbackcited by 31
  6. 2024HumanEval-V: Benchmarking High-Level Visual Reasoning with Complex Diagrams in Coding Taskscited by 19
  7. 2025VCode: a Multimodal Coding Benchmark with SVG as Symbolic Visual Representationcited by 16
  8. 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
  9. 2025Draw with Thought: Unleashing Multimodal Reasoning for Scientific Diagram Generationcited by 14
  10. 2025Boosting Chart-to-Code Generation in MLLM via Dual Preference-Guided Refinementcited by 11
  11. 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agentscited by 11
  12. 2025Improved Iterative Refinement for Chart-to-Code Generation via Structured Instructioncited by 9
8 more
  1. 2025BigCodeArena: Unveiling More Reliable Human Preferences in Code Generation via Executioncited by 5
  2. 2025VisCoder2: Building Multi-Language Visualization Coding Agentscited by 4
  3. 2026GeoTikzBridge: Advancing Multimodal Code Generation for Geometric Perception and Reasoningcited by 3
  4. 2026Chart Specification: Structural Representations for Incentivizing VLM Reasoning in Chart-to-Code Generationcited by 2
  5. 2025From Perception to Reasoning: Deep Thinking Empowers Multimodal Large Language Modelscited by 1
  6. 2026Probabilistic Programs of Thoughtcited by 1
  7. 2025Hierarchical Process Reward Models are Symbolic Vision Learnerscited by 0
  8. 2026ViCo: Visual-oriented Coding with Self-Reflection for Chart Replicationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025PlotGen-Bench: Evaluating VLMs on Generating Visualization Code from Diverse Plots across Multiple Libraries
  2. 2026RealChart2Code: Advancing Chart-to-Code Generation with Real Data and Multi-Task Evaluation
  3. 2026From Pixel to Coding: Evaluating the Figure Reproduction Capabilities of MLLMs
  4. 2026Vision2Code: A Multi-Domain Benchmark for Evaluating Image-to-Code Generation
  5. 2025From Charts to Code: A Hierarchical Benchmark for Multimodal Models
  6. 2026PlotChain: Deterministic Checkpointed Evaluation of Multimodal LLMs on Engineering Plot Reading
  7. 2024Text2Chart31: Instruction Tuning for Chart Generation with Automatic Feedback
  8. 2024ScImage: How Good Are Multimodal Large Language Models at Scientific Text-to-Image Generation?