# MatplotAlt: A Python Library for Adding Alt Text to Matplotlib Figures in Computational Notebooks

arXiv: https://arxiv.org/abs/2503.20089 · HTML: https://mlsanity.com/paper/2503.20089/

## Key facts

- Cited by 3 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 25 Mar 2025.

## Built on by (most cited first, 3 of 3)

- [LangLasso: Interactive Cluster Descriptions through LLM Explanation](https://mlsanity.com/paper/2601.10458/) (2026)
- [Benchmark It Yourself (BIY): Preparing a Dataset and Benchmarking AI Models for Scatterplot-Related Tasks](https://mlsanity.com/paper/2510.06071/) (2025)
- [A Systematic Survey on Image Description Techniques for STEM Domains](https://mlsanity.com/paper/2607.21611/) (2026)

## Abstract (arXiv)

We present MatplotAlt, an open-source Python package for easily adding alternative text to Matplotlib figures. MatplotAlt equips Jupyter notebook authors to automatically generate and surface chart descriptions with a single line of code or command, and supports a range of options that allow users to customize the generation and display of captions based on their preferences and accessibility needs. Our evaluation indicates that MatplotAlt's heuristic and LLM-based methods to generate alt text can create accurate long-form descriptions of both simple univariate and complex Matplotlib figures. We find that state-of-the-art LLMs still struggle with factual errors when describing charts, and improve the accuracy of our descriptions by prompting GPT4-turbo with heuristic-based alt text or data tables parsed from the Matplotlib figure.
