Skip to main content

Accessibility tools for matplotlib, plotly, and Quarto

Project description

a11yviz Logo

PyPI version Python versions License: MIT

Tools to make matplotlib and plotly charts plus Markdown / Quarto documents follow the Web Content Accessibility Guidelines (WCAG 2.1). Provides accessible themes, layout helpers, WCAG-tagged palettes, alt-text scaffolds, per-criterion audits, a chart-and-document rubric, heading-hierarchy and reading-level checks, and a drop-in stylesheet for HTML tables and SVG diagrams. R sibling: a11yviz.

Installation

pip install a11yviz

Quick start

import matplotlib.pyplot as plt
import a11yviz
from sklearn.datasets import load_iris

_data = load_iris(as_frame=True)
iris = _data.frame
iris["species"] = _data.target_names[iris["target"]]
cols = a11yviz.palette("dark2_8")
markers = ["o", "s", "^"]

fig, ax = plt.subplots()
for i, (sp, sub) in enumerate(iris.groupby("species")):
    ax.scatter(sub["sepal length (cm)"], sub["sepal width (cm)"],
               color=cols[i], marker=markers[i], label=sp)
ax.set_xlabel("Sepal length (cm)")
ax.set_ylabel("Sepal width (cm)")
ax.legend()

a11yviz.alt_text(fig, "Scatter of iris sepal width vs length by species.")

Citation

Shin, M. (2026). a11yviz: Accessibility toolkit for ggplot2, plotly, and Quarto (R package version 0.1.1). https://mshin77.github.io/a11yviz

Shin, M. (2026). a11yviz: Accessibility toolkit for matplotlib, plotly, and Quarto (Python package version 0.1.1). https://pypi.org/project/a11yviz/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

a11yviz-0.1.1.tar.gz (33.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

a11yviz-0.1.1-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

Details for the file a11yviz-0.1.1.tar.gz.

File metadata

  • Download URL: a11yviz-0.1.1.tar.gz
  • Upload date:
  • Size: 33.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for a11yviz-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cdaa28d9008230f8e424ed000c9b302fc75bc84e885d964576e0693f4d6bd4ee
MD5 92d2a36ebf1d688509f44aaba6832781
BLAKE2b-256 458b32144b2603354c4d1de7150d12a5076214e7281793c3ca61d43435de14ad

See more details on using hashes here.

File details

Details for the file a11yviz-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: a11yviz-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 31.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for a11yviz-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e8a2921777a86947f6db3c937054ae454dadddd4ecc290c059a7bbab542e45e7
MD5 11c1cd81bb4b8bfec1b6e981e5c06a6d
BLAKE2b-256 8e097d80aa90112de0873daad7349a1251c688e14d853c122818fd042e2ade87

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page