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

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.

Authors

Institutions

Publication Details

Journal
Computer Graphics Forum
Published
2025-05-23
DOI
https://doi.org/10.1111/cgf.70119
Citations
6
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
19.48

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Venkatesh Potluri, Jennifer Mankoff, Kai Nylund
6 citations
Computer Graphics Forum
Software Engineering Research
19.48
article

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

Venkatesh Potluri, Jennifer Mankoff, Kai Nylund
article en
6 citations

Abstract

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.

Computer Graphics ForumVol. 44(3)
University of Washington (US), University of Michigan (US)
U.S. Department of Health and Human Services, Microsoft, Google, University of Washington, Australian Government, Administration for Community Living, National Institute on Disability, Independent Living, and Rehabilitation Research
Openalex Percentile: Top 1%
Software Engineering Research
19.48
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

MatplotAlt: A Python Library for Adding Alt Text to Matplotlib Figures in Computational Notebooks — Venkatesh Potluri, Jennifer Mankoff, et al. · Computer Graphics Forum (2025) | TGRS Research Map | TGRS