MatplotAlt:一个Python库,用于在计算笔记本中的Matplotlib图中添加Alt文本
Kai Nylund1, Jennifer Mankoff1, Venkatesh Potluri2
1Paul G. Allen School of Computer Science & Engineering, University of Washington.
概括
MatplotAlt是一个Python包,可以自动生成Jupyter笔记本中的Matplotlib图表的替代文本. 它通过使用启发式和基于LLM的方法来提高图表的可访问性,甚至改进了LLM的准确性.
科学领域:
- 数据可视化 数据可视化
- 科学计算科学计算
- 可访问性 可访问性
背景情况:
- Matplotlib是一个广泛使用的Python库,用于创建静态,动画和交互式可视化.
- 为复杂的数据可视化生成描述性的替代文本 (alt文本) 仍然是一个挑战,影响视力受损用户的可访问性.
- 现有的自动替代文本生成方法往往缺乏准确性或定制选项.
研究的目的:
- 介绍MatplotAlt,一个开源的Python包,旨在简化对Matplotlib图形添加alt文本.
- 为了使Jupyter笔记本作者能够以最小的代码自动生成和显示图表描述.
- 提供可定制的替代文本生成和显示选项,以满足用户偏好和可访问性要求.
主要方法:
- 开发了MatplotAlt作为一个与Jupyter笔记本集成的Python包.
- 实施基于启发式和基于大型语言模型 (LLM) 的方法来生成替代文本.
- 评估了各种Matplotlib数字生成的替代文本的准确性,包括单变量和复杂的图表.
- 研究了提高LLM准确性的方法,例如提示基于启发式的替代文本或解析数据表.
主要成果:
- MatplotAlt成功地为简单和复杂的Matplotlib图形生成了准确的长形式描述.
- 在MatplotAlt中,基于启发式和LLM的方法都在创建描述性的alt文本方面表现出有效性.
- 最先进的LLM在独立描述图表时表现出事实上的不准确性.
- 使用基于启发式的替代文本或数据表来提示GPT-4 Turbo显著提高了描述的准确性.
结论:
- MatplotAlt提供了一种实用且高效的解决方案,用于提高Matplotlib可视化可访问性.
- 该包使研究人员和教育工作者能够在木星环境中创建更具包容性的数据叙述.
- 将启发式方法与LLM结合起来,特别是通过知情提示,对于提高自动化图表描述的事实准确性至关重要.
相关概念视频
Modified Boxplots
11.6K
A standard box and whisker plot informs us about the spread of the data in a given sample. One can identify the minimum value, maximum value, first quartile value, second quartile or median value, and third quartile.
However, the box plot does not tell the reader about outliers - values that lie far from the center of the data. We can modify the standard box and whisker plot to identify the outliers and visualize the actual spread of the data in a sample.
Initially, we calculate the adjusted...
However, the box plot does not tell the reader about outliers - values that lie far from the center of the data. We can modify the standard box and whisker plot to identify the outliers and visualize the actual spread of the data in a sample.
Initially, we calculate the adjusted...
11.6K
Multiple Bar Graph
10.4K
As the name suggests, a multiple bar graph is the same as a bar graph but has multiple bars to depict relationships between different data values. One can include as many parameters as possible. However, each parameter must have the same unit of measurement.
Each bar or column in the multiple bar graph represents a data value. These graphs are used primarily in interrelating two or more sets of data. The categories of different kinds of data are listed along the horizontal or x-axis, whereas...
Each bar or column in the multiple bar graph represents a data value. These graphs are used primarily in interrelating two or more sets of data. The categories of different kinds of data are listed along the horizontal or x-axis, whereas...
10.4K
Bar Graph
23.5K
A bar graph is also called a bar chart and consists of bars that are separated from each other. It either uses horizontal or vertical bars to show comparisons among categories. The bars can be rectangles, or they can be rectangular boxes (used in three-dimensional plots). One axis of the graph represents the specific categories being compared, and the other axis shows a discrete value. In this graph, the length of the bar for each category is proportional to the number or percent of individuals...
23.5K
Ogive Graph
7.0K
An ogive graph is sometimes called a cumulative frequency polygon. It is one type of frequency polygon that shows cumulative frequency. In other words, the cumulative percentages are added to the graph from left to right. An ogive graph plots cumulative frequency on the vertical y-axis and class boundaries along the horizontal x-axis. It’s very similar to a histogram; only instead of rectangles, an ogive displays a single point where the top right of the rectangle would be. Creating this...
7.0K
Graphical and Analytic Representation of Sinusoids
1.1K
Analyzing two sinusoidal voltages with equal amplitude and period but different phases on an oscilloscope, an instrument used to display and analyze waveforms, involves a three-step process.
The first step is measuring the peak-to-peak value, which is twice the amplitude of the sinusoid. This provides information about the maximum voltage swing of the waveform.
Secondly, the period and angular frequency are determined. The period is the time taken for one complete cycle of the waveform, while...
The first step is measuring the peak-to-peak value, which is twice the amplitude of the sinusoid. This provides information about the maximum voltage swing of the waveform.
Secondly, the period and angular frequency are determined. The period is the time taken for one complete cycle of the waveform, while...
1.1K
Graphing the Wave Function
3.2K
Consider the wave equation for a sinusoidal wave moving in the positive x-direction. The wave equation is a function of both position and time. From the wave equation, two different graphs can be plotted.
3.2K


