Skip to content

Latest commit

 

History

History
93 lines (71 loc) · 5.04 KB

File metadata and controls

93 lines (71 loc) · 5.04 KB
layout manual
title Accessibility Standards
subtitle Guidelines for accessible writing and figure creation.
permalink /manual/guides/accessibility

Accessibility Standards

  • Color Blindness
  • Font Choice
  • Screen Reader Accessibility
  • Figure Creation

This guide will provide a checklist as well as resources to make your documents more accessible.

1. Color Blindness

Before picking a friendly color palette, consider using non-color means to distinguish lines or datasets, such as linestyle or markers. Matplotlib already has functions to do this within a plot for each dataset.

For specific color guidance, avoid combinations of red, green, brown, and yellow for contrasting colors - as most forms of colorblindness impact the red and green cones of the eyes. Also, avoid only using blues or purples as contrasting colors. 'Coloring for Colorbliness' is a useful tool to check color blind friendliness in your palate as well as creating good pallets from scratch.

2. Font Choice

Font choice relates to both the font itself and the contrast of the font against the background. WebAIM is a tool to check if the contrast ratio meets the accessibility standards. Generally, headings should have a contrast ratio of at least 3:1, and body text should be at least 4.5:1. If you forget, WebAIM will also tell you if the font passes.

While choosing a font - consider:

  • Sans Serif fonts are generally easier to read than Serif fonts
  • Avoid thin fonts, narrow fonts, or fonts with uneven heights between lowercase and capital letters
  • Good font examples: Times New Roman, Arial, Verdana, Helvetica

Additional information and tools for font accessibility are found at Section 508, ADA Site Complience, and UNC Greensboro’s Page on Fonts.

3. Screen Reader Accessibility

Make sure to use common fonts that screen readers can recognize to make your documents more friendly. Screen readers also often struggle with interpreting images that have no metadata text. Alt text is relatively easy to add within Microsoft Word or HTML. Harvard has some suggested tools for checking webpage accessibility.

However, in this group we generally use LaTeX and PDFs, and making these documents screen reader-friendly is generally much harder. Some suggested LaTeX packages are accessibility, pdfcomment, and axessibility - the latter being for equations. This journal and this page have more extensive advice.

Overleaf also has an extensive page with additional advice dedicated to this topic.

4. Figure Creation

Avoid the jet (rainbow) color scheme since it's not particularly accessible, and there are better color maps for conveying information. Think about what information you’re trying to convey when choosing colors. Not all color palettes are created equal. Jet, for example, is not perceptually uniform - i.e., colors near to each other look relatively similar, while colors far apart are distinct.

With Matplotlib, you can set the style of plots for a whole script with global parameters.

import matplotlib.pyplot as plt
plt.style.use(['dark_background','presentation'])

These global variables can be defined in a top-level file *.mplstyle. Matplotlib's default style can be found here while Nathan Ryan's better style file can be found here.

5. Additional Reading